Add 17.nix
This commit is contained in:
parent
9656e7e52c
commit
1585dc43f6
|
@ -0,0 +1,9 @@
|
||||||
|
let
|
||||||
|
attrSetBonus = {f = {add = (x: y: x + y);
|
||||||
|
mul = (x: y: x * y);};
|
||||||
|
n = {one = 1; two = 2;};};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
#Bonus: use only the attrSetBonus to solve this one
|
||||||
|
exBonus = 5 == attrSetBonus.f.add attrSetBonus.n.one ( attrSetBonus.f.add attrSetBonus.n.two attrSetBonus.n.two);
|
||||||
|
}
|
Loading…
Reference in New Issue