solutions/A Tour of Nix/08.nix

9 lines
155 B
Nix
Raw Normal View History

2024-04-16 19:13:00 -04:00
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;
}