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

Function constant

packages/typeclass/src/Semigroup.ts:65–65  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

63 * @since 0.24.0
64 */
65export const constant = <A>(a: A): Semigroup<A> => make(() => a, () => a)
66
67/**
68 * The dual of a `Semigroup`, obtained by flipping the arguments of `combine`.

Callers 13

DocArbitrary.tsFile · 0.85
getFunction · 0.85
MaxFieldSizeClass · 0.85
FieldMimeTypesClass · 0.85
RouterConfigClass · 0.85
streamEffectFunction · 0.85
RpcServer.tsFile · 0.85
updateWithFunction · 0.85
makeFunction · 0.85
layerFunction · 0.85
layerFunction · 0.85
Sharding.tsFile · 0.85

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected