mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 03:06:17 +02:00
10 lines
201 B
Nix
10 lines
201 B
Nix
|
# Tests that the rhs argument of op is not forced unconditionally
|
||
|
let
|
||
|
lst = builtins.foldl'
|
||
|
(acc: x: acc ++ [ x ])
|
||
|
[ ]
|
||
|
[ 42 (throw "this shouldn't be evaluated") ];
|
||
|
in
|
||
|
|
||
|
builtins.head lst
|