tour-of-nix/08.nix

9 lines
155 B
Nix

let
min = a: b: if (a > b) then b else a; #modify these
max = a: b: if (a > b) then a else b; #two lines only
in
{
ex0 = min 5 3;
ex1 = max 9 4;
}