diff options
author | Jan Malakhovski <oxij@oxij.org> | 2017-12-07 21:26:30 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2017-12-07 21:26:30 +0000 |
commit | bccab965b9226e7d515e1ee1cdf47bb32d1df63d (patch) | |
tree | cd46278495ed5ec59a22bbc111b9d9b2065a320b /lib/default.nix | |
parent | aeb32cf187edd854cb5541f5f4fe40713c0e96b5 (diff) |
lib: implement `compare`, `splitByAndCompare`, and `compareLists`
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix index 9dc4fea99fc2..eb19dc06ce80 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -56,7 +56,7 @@ let replaceStrings seq stringLength sub substring tail; inherit (trivial) id const concat or and boolToString mergeAttrs flip mapNullable inNixShell min max importJSON warn info - nixpkgsVersion mod; + nixpkgsVersion mod compare splitByAndCompare; inherit (fixedPoints) fix fix' extends composeExtensions makeExtensible makeExtensibleWithCustomName; @@ -71,8 +71,8 @@ let inherit (lists) singleton foldr fold foldl foldl' imap0 imap1 concatMap flatten remove findSingle findFirst any all count optional optionals toList range partition zipListsWith zipLists - reverseList listDfs toposort sort take drop sublist last init - crossLists unique intersectLists subtractLists + reverseList listDfs toposort sort compareLists take drop sublist + last init crossLists unique intersectLists subtractLists mutuallyExclusive; inherit (strings) concatStrings concatMapStrings concatImapStrings intersperse concatStringsSep concatMapStringsSep |