MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

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

Source from the content-addressed store, hash-verified

163 * @since 2.0.0
164 */
165export const fromIterable = <A>(collection: Iterable<A>): Array<A> =>
166 Array.isArray(collection) ? collection : Array.from(collection)
167
168/**
169 * Creates a new `Array` from a value that might not be an iterable.

Callers 6

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