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

Function getSemigroup

packages/printer/src/internal/docTree.ts:500–505  ·  view source on GitHub ↗
(_: void)

Source from the content-addressed store, hash-verified

498
499/** @internal */
500export const getSemigroup = <A>(_: void): semigroup.Semigroup<DocTree.DocTree<A>> => {
501 return {
502 combine: (self, that) => concat(Arr.make(self, that)),
503 combineMany: (self, trees) => concat(Arr.fromIterable([self, ...trees]))
504 }
505}
506
507/** @internal */
508export const getMonoid = <A>(_: void): monoid.Monoid<DocTree.DocTree<A>> => {

Callers

nothing calls this directly

Calls 2

concatFunction · 0.70
makeMethod · 0.65

Tested by

no test coverage detected