tour-of-nix/11.nix

8 lines
224 B
Nix
Raw Normal View History

2022-04-07 19:40:31 +02:00
let
func = {a, b, ...}@bargs: if a == "foo" then
b + bargs.c else b + bargs.x + bargs.y;
in
{
#complete next line so it evaluates to "foobar"
foobar = func {a="bar"; b="foo"; x="bar"; y="";}; #ONLY EDIT THIS LINE
}