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

Function make

packages/typeclass/src/Semigroup.ts:37–43  ·  view source on GitHub ↗
(
  combine: Semigroup<A>["combine"],
  combineMany: Semigroup<A>["combineMany"] = (self, collection) => reduce(self, combine)(collection)
)

Source from the content-addressed store, hash-verified

35 * @since 0.24.0
36 */
37export const make = <A>(
38 combine: Semigroup<A>["combine"],
39 combineMany: Semigroup<A>["combineMany"] = (self, collection) => reduce(self, combine)(collection)
40): Semigroup<A> => ({
41 combine,
42 combineMany
43})
44
45/**
46 * `Semigroup` that returns last minimum of elements.

Callers 11

minFunction · 0.70
maxFunction · 0.70
constantFunction · 0.70
reverseFunction · 0.70
Semigroup.tsFile · 0.70
firstFunction · 0.70
lastFunction · 0.70
productFunction · 0.70
productAllFunction · 0.70
productManyFunction · 0.70
arrayFunction · 0.70

Calls 1

reduceFunction · 0.50

Tested by

no test coverage detected