Package: effect
Module: Array
Creates a NonEmptyArray from one or more elements.
When to use
Use when you need to create a typed non-empty array from literal values.
Details
The element type is inferred as the union of all arguments. Because at least
one argument is required, this always returns a NonEmptyArray.
Example (Creating an array from values)
import { Array } from "effect"
const result = Array.make(1, 2, 3)
console.log(result) // [1, 2, 3]
See
of — create a single-element arrayfromIterable — create from any iterableSignature
declare const make: <Elements extends NonEmptyArray<unknown>>(...elements: Elements) => NonEmptyArray<Elements[number]>
Since v2.0.0