diff options
Diffstat (limited to 'tests/lang/eval-okay-list.nix')
-rw-r--r-- | tests/lang/eval-okay-list.nix | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/lang/eval-okay-list.nix b/tests/lang/eval-okay-list.nix index 72a120d0d0f2..d433bcf908ba 100644 --- a/tests/lang/eval-okay-list.nix +++ b/tests/lang/eval-okay-list.nix @@ -1,12 +1,6 @@ -let { - - fold = op: nul: list: - if list == [] - then nul - else op (builtins.head list) (fold op nul (builtins.tail list)); +with import ./lib.nix; - concat = - fold (x: y: x + y) ""; +let { body = concat ["foo" "bar" "bla" "test"]; |