Package: effect
Module: Array
Wraps a single value in a NonEmptyArray.
Example (Creating a single-element array)
import { Array } from "effect"
console.log(Array.of(1)) // [1]
See
make — create from multiple valuesempty — create an empty arraySignature
declare const of: <A>(a: A) => NonEmptyArray<A>
Since v2.0.0