Skip to main content
Module

x/fun/mod.ts>array.wrap

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function array.wrap
import { array } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { wrap } = array;

Create a NonEmptyArray conuaining the value A.

Examples

Example 1

import * as A from "./array.ts";

const result = A.wrap(1); // [1] of type NonEmptyArray<number>