mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
e5534d4641
It's not immediately obvious which previous `mul` definition applies, and is a copy-paste hazard. Staring the block with a `mul = ...` is also consistent with the other code blocks. Fixes #46
5 lines
284 B
Plaintext
5 lines
284 B
Plaintext
nix-repl> mul = { a, b }: a*b
|
|
nix-repl> mul { a = 3; b = 4; c = 6; }
|
|
error: anonymous function at (string):1:2 called with unexpected argument `c', at (string):1:1
|
|
nix-repl> mul { a = 3; }
|
|
error: anonymous function at (string):1:2 called without required argument `b', at (string):1:1 |