From 8c8f64547391f794961a44feceecbe7a1bd2ba0a Mon Sep 17 00:00:00 2001 From: NaiJi Date: Wed, 27 Apr 2022 05:56:57 +0000 Subject: [PATCH] Add '32.nix' --- 32.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 32.nix diff --git a/32.nix b/32.nix new file mode 100644 index 0000000..c764e2a --- /dev/null +++ b/32.nix @@ -0,0 +1,9 @@ +with import { }; +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] +} \ No newline at end of file