Skip to content

Commit

Permalink
Deprecate lib.crossLists
Browse files Browse the repository at this point in the history
  • Loading branch information
tfc committed Jan 28, 2021
1 parent 001ba39 commit 577d58a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/lists.nix
Expand Up @@ -629,7 +629,9 @@ rec {
crossLists (x:y: "${toString x}${toString y}") [[1 2] [3 4]]
=> [ "13" "14" "23" "24" ]
*/
crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];
crossLists = builtins.trace
"lib.crossLists is deprecated, use lib.cartesianProductOfSets instead"
(f: foldl (fs: args: concatMap (f: map f args) fs) [f]);


/* Remove duplicate elements from the list. O(n^2) complexity.
Expand Down

0 comments on commit 577d58a

Please sign in to comment.