MCPcopy Create free account
hub / github.com/effect-app/libs / fromIterable

Function fromIterable

repos/effect/packages/effect/src/Array.ts:304–305  ·  view source on GitHub ↗
(collection: Iterable<A>)

Source from the content-addressed store, hash-verified

302 */
303export const fromIterable = <A>(collection: Iterable<A>): Array<A> =>
304 Array.isArray(collection) ? collection : Array.from(collection)
305
306/**
307 * Normalizes a value that is either a single element or an array into an array.
308 *

Callers 7

makeFunction · 0.70
Array.tsFile · 0.70
tailFunction · 0.70
initFunction · 0.70
sortByFunction · 0.70
intersectionWithFunction · 0.70
differenceWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…