Nix list builtins
concatLists lists
- flattens a list of listselem x xs
-true
ifx
is in listxs
, otherwisefalse
elemAt xs n
- return element at (0-indexed) positionn
in listxs
filter f xs
- return the elements ofxs
for whichf
returns truefoldl' op nul list
- strict left foldgenList generator length
- Generate a list of lengthlength
with each elementi
equal togenerator i
head list
- first element of a listisList e
- returnstrue
ife
is a list, otherwisefalse
length e
- length of the liste
sort comparator list
- returnlist
in sorted order according tocomparator
; stable sortᛦtail list
- return all but the first element oflist