The source list.
The picked list.
import { empty, fromArray, init, toArray } from "./list.ts";
import { assertEquals } from "../deps.ts";
assertEquals(init(empty()), empty());
assertEquals(toArray(init(fromArray([5, 2, 1, 3]))), [5, 2, 1]);
Generated using TypeDoc
Removes the last element from the list.