mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
10 lines
160 B
Nix
10 lines
160 B
Nix
|
let
|
||
|
a = 5;
|
||
|
b = 1;
|
||
|
c = 2;
|
||
|
concat = a: b: "${a}${b}";
|
||
|
nested.attr.ab = 10;
|
||
|
|
||
|
add = a: b: a + b;
|
||
|
in add nested.attr.${concat "a" "b"} $ add b $ add a c
|