1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00
nix-pills/pills/05/set-argument.txt
Matan Bendix Shenhav 4f72955417 Wrote up pill 5.
2017-08-13 13:16:21 +03:00

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