11 lines
190 B
Nix
11 lines
190 B
Nix
|
let
|
||
|
bar = ["bar" "foo" "bla"];
|
||
|
numbers = [1 2 3 4];
|
||
|
in
|
||
|
{
|
||
|
#multiplies every number by 2
|
||
|
example = map (n: n * 2) numbers;
|
||
|
#complete this
|
||
|
foobar = map ( bar: bar + "bar" ) bar;
|
||
|
}
|