Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fun/array.ts>of

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

Create a NonEmptyArray conuaining the value A.

Examples

Example 1

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

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