From 357e95419889dc2ea2397814e179ba72b947c1e9 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 20 Jun 2024 18:28:08 +0200 Subject: lib.length: inherit from lib.lists --- lib/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 460d62eac432e..fdc6b2afce9d0 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -66,7 +66,7 @@ let inherit (builtins) add addErrorContext deepSeq elem elemAt genericClosure getAttr - hasAttr head isAttrs isBool isInt isList isPath isString length + hasAttr head isAttrs isBool isInt isList isPath isString lessThan listToAttrs pathExists readFile replaceStrings seq stringLength sub substring tail trace; inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor @@ -93,7 +93,8 @@ let optional optionals toList range replicate partition zipListsWith zipLists reverseList listDfs toposort sort sortOn naturalSort compareLists take drop sublist last init crossLists unique allUnique intersectLists - subtractLists mutuallyExclusive groupBy groupBy' concatLists genList; + subtractLists mutuallyExclusive groupBy groupBy' concatLists genList + length; inherit (self.strings) concatStrings concatMapStrings concatImapStrings intersperse concatStringsSep concatMapStringsSep concatImapStringsSep concatLines makeSearchPath makeSearchPathOutput -- cgit 1.4.1