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

Function fromIterable

repos/effect/packages/effect/src/Option.ts:513–518  ·  view source on GitHub ↗
(collection: Iterable<A>)

Source from the content-addressed store, hash-verified

511 *
512 * Option.getSuccess(Result.succeed("ok")) // => Option.some("ok")
513 * Option.getSuccess(Result.fail("err")) // => Option.none()
514 * ```
515 *
516 * @see {@link getFailure} for the opposite operation.
517 *
518 * @category converting
519 * @since 4.0.0
520 */
521export const getSuccess: <A, E>(self: Result<A, E>) => Option<A> = result.getSuccess

Callers

nothing calls this directly

Calls 2

someFunction · 0.70
noneFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…