Add '32.nix'

master
NaiJi ✨ 2 years ago
parent 01be02f4cc
commit 8c8f645473

@ -0,0 +1,9 @@
with import <nixpkgs> { };
let
attrSet = {c = 3; a = 1; b = 2;};
attrValues = s: map (field: s.${field}) (builtins.attrNames s);
in
rec {
solution = attrValues attrSet; #should be [1 2 3]
}
Loading…
Cancel
Save