From 577d58a8e01aead5eb237d39a6d7df1fb7aa00c4 Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 28 Jan 2021 08:51:21 +0100 Subject: [PATCH] Deprecate lib.crossLists --- lib/lists.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lists.nix b/lib/lists.nix index 06cee2eb112a..56af4d9daa18 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -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.