nixList
import { nixList } from "https://garn.io/ts/v0.0.16/nix.ts";
Turns a javascript array of NixExpression
s into a Nix list.
Example:
// returns the Nix expression `[ "a" "b" "c" ]`
nixList([
nixStrLit`a`,
nixStrLit`b`,
nixStrLit`c`,
])
§
nixList(elements: Array<NixExpression>): NixExpression
[src]§Parameters
§
elements: Array<NixExpression>
[src]