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

Function partitionMap

packages/effect-app/src/Set.ts:341–347  ·  view source on GitHub ↗
(
  EB: Equivalence.Equivalence<B>,
  EC: Equivalence.Equivalence<C>
)

Source from the content-addressed store, hash-verified

339 * Partition elements according to f
340 */
341export function partitionMap<B, C>(
342 EB: Equivalence.Equivalence<B>,
343 EC: Equivalence.Equivalence<C>
344): <A>(f: (a: A) => Result.Result<C, B>) => (set: Set<A>) => readonly [Set<B>, Set<C>] {
345 const pm = partitionMap_(EB, EC)
346 return <A>(f: (a: A) => Result.Result<C, B>) => (set: Set<A>) => pm(set, f)
347}
348
349/**
350 * Partition elements according to f

Callers

nothing calls this directly

Calls 1

partitionMap_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…