Add '11.nix'

This commit is contained in:
NaiJi ✨ 2022-04-07 17:40:31 +00:00
parent 8f91f53f6f
commit 22a96b3ac7
1 changed files with 8 additions and 0 deletions

8
11.nix Normal file
View File

@ -0,0 +1,8 @@
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
}