solutions/A Tour of Nix/27.nix

11 lines
190 B
Nix
Raw Normal View History

2024-04-16 19:13:00 -04:00
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;
}