MCPcopy
hub / github.com/Effect-TS/effect / compact

Function compact

packages/effect/src/List.ts:617–617  ·  view source on GitHub ↗
(self: List<Option.Option<A>>)

Source from the content-addressed store, hash-verified

615 * @category combinators
616 */
617export const compact = <A>(self: List<Option.Option<A>>): List<A> => filterMap(self, identity)
618
619/**
620 * Returns the first element that satisfies the specified

Callers

nothing calls this directly

Calls 1

filterMapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…