From 30def45e47540ec1b034fc1dbdcf6619f96ca6a0 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 20 Jun 2024 18:26:49 +0200 Subject: lib.filter: 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 1fa7bd236b117..abe205e68d82d 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -65,7 +65,7 @@ let kernel = callLibs ./kernel.nix; inherit (builtins) add addErrorContext - deepSeq elem elemAt filter genericClosure genList getAttr + deepSeq elem elemAt genericClosure genList getAttr hasAttr head isAttrs isBool isInt isList isPath isString length lessThan listToAttrs pathExists readFile replaceStrings seq stringLength sub substring tail trace; @@ -89,7 +89,7 @@ let recurseIntoAttrs dontRecurseIntoAttrs cartesianProduct cartesianProductOfSets mapCartesianProduct updateManyAttrsByPath intersectAttrs removeAttrs; inherit (self.lists) singleton forEach map foldr fold foldl foldl' imap0 imap1 - ifilter0 concatMap flatten remove findSingle findFirst any all count + filter ifilter0 concatMap flatten remove findSingle findFirst any all count optional optionals toList range replicate partition zipListsWith zipLists reverseList listDfs toposort sort sortOn naturalSort compareLists take drop sublist last init crossLists unique allUnique intersectLists -- cgit 1.4.1