Package: effect
Module: Array
Creates a new Array from an iterable collection of values.
If the input is already an array, it returns the input as-is.
Otherwise, it converts the iterable collection to an array.
Example
import { Array } from "effect"
const result = Array.fromIterable(new Set([1, 2, 3]))
console.log(result) // [1, 2, 3]
Signature
declare const fromIterable: <A>(collection: Iterable<A>) => Array<A>
Since v2.0.0