From 504e808c98170164c384507f208783a9f5a376d5 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Sat, 16 Apr 2022 15:25:58 +0000 Subject: [PATCH] Add '21.nix' --- 21.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 21.nix diff --git a/21.nix b/21.nix new file mode 100644 index 0000000..c8c3382 --- /dev/null +++ b/21.nix @@ -0,0 +1,14 @@ +let + attrSet = {x = "a"; y = "b"; b = {t = true; f = false;};}; + attrSet.c = 1; + attrSet.d = 2; + attrSet.e.f = "g"; + + list1 = [attrSet.c attrSet.d]; + list2 = [attrSet.x attrSet.y]; + +in +{ + #List concatenation. + ex0 = ["a" "b" 1 2] == [ attrSet.x attrSet.y ] ++ [attrSet.c attrSet.d ]; +} \ No newline at end of file