Add '21.nix'

This commit is contained in:
NaiJi ✨ 2022-04-16 15:25:58 +00:00
parent 700ce83864
commit 504e808c98
1 changed files with 14 additions and 0 deletions

14
21.nix Normal file
View File

@ -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 ];
}