mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
6 lines
126 B
Plaintext
6 lines
126 B
Plaintext
|
nix-repl> mul = s: s.a*s.b
|
||
|
nix-repl> mul { a = 3; b = 4; }
|
||
|
12
|
||
|
nix-repl> mul = { a, b }: a*b
|
||
|
nix-repl> mul { a = 3; b = 4; }
|
||
|
12
|