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

nixList

import { nixList } from "https://garn.io/ts/v0.0.16/nix.ts";

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]