Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

8 строки
292 B
Plaintext

Lists
Lists are a sequence of expressions delimited by space (not comma):
nix-repl> [ 2 "foo" true (2+3) ]
[ 2 "foo" true 5 ]
Lists, like everything else in Nix, are immutable.
Adding or removing elements from a list is possible, but will return a new list.