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

Function compact

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

Source from the content-addressed store, hash-verified

717 * @category filtering
718 */
719export const compact = <A>(self: Chunk<Option<A>>): Chunk<A> => filterMap(self, identity)
720
721/**
722 * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements.

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…