From f6cbaeca60d641d71377050cef27f6cdf74f8b72 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 20 Jun 2024 18:30:39 +0200 Subject: lib.head: inherit from lib.lists --- lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 0da4361f0157e..51994b24e90d6 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 + hasAttr isAttrs isBool isInt isList isPath isString lessThan listToAttrs pathExists readFile replaceStrings seq sub substring trace; inherit (self.trivial) id const pipe concat or and xor bitAnd bitOr bitXor @@ -94,7 +94,7 @@ let reverseList listDfs toposort sort sortOn naturalSort compareLists take drop sublist last init crossLists unique allUnique intersectLists subtractLists mutuallyExclusive groupBy groupBy' concatLists genList - length tail; + length head tail; inherit (self.strings) concatStrings concatMapStrings concatImapStrings stringLength intersperse concatStringsSep concatMapStringsSep -- cgit 1.4.1