Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

nix.nixList

import { nix } from "https://garn.io/ts/v0.0.19/mod.ts"; 

const { nixList } = nix;

Turns a javascript array of NixExpressions into a Nix list.

Example:

// returns the Nix expression `[ "a" "b" "c" ]`
nixList([
  nixStrLit`a`,
  nixStrLit`b`,
  nixStrLit`c`,
])
function nixList(elements: Array<NixExpression>): NixExpression;
§
nixList(elements: Array<NixExpression>): NixExpression
[src]

§Parameters

§
elements: Array<NixExpression>
[src]