mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
nix-repl> bools = [ false true ]
nix-repl> combinations = builtins.concatMap (a: builtins.concatMap (b: map (c: { inherit a b c; }) bools) bools) bools
nix-repl> builtins.all ({ a, b, c }: (a -> b -> c) == (a -> (b -> c))) combinations
true
nix-repl> builtins.all ({ a, b, c }: (a -> b -> c) == ((a -> b) -> c)) combinations
false
|
||
|---|---|---|
| .. | ||
| internal-api | ||
| manual | ||