Add '16.nix'

master
NaiJi ✨ 2 years ago
parent ce962efde7
commit 9656e7e52c

@ -0,0 +1,9 @@
let
list = [ { name = "foo"; value = 123; }
{ name = "bar"; value = 456; } ];
string = ''{"x": [1, 2, 3], "y": null}'';
in
{
ex0 = builtins.listToAttrs list == { foo = 123; bar = 456; };
ex1 = builtins.fromJSON string == { x = [ 1 2 3 ]; y = null; };
}
Loading…
Cancel
Save