effect-io-ai

Package: effect
Module: Array

Array.make

Builds a NonEmptyArray from an non-empty collection of elements.

Example

import { Array } from "effect"

const result = Array.make(1, 2, 3)
console.log(result) // [1, 2, 3]

Signature

declare const make: <Elements extends NonEmptyArray<any>>(...elements: Elements) => NonEmptyArray<Elements[number]>

Source

Since v2.0.0