nix.nixList
import { nix } from "https://garn.io/ts/v0.0.19/mod.ts";
const { nixList } = nix;
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]