9 lines
319 B
Nix
9 lines
319 B
Nix
|
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);
|
||
|
}
|