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

Function makeCons

packages/effect/src/List.ts:159–164  ·  view source on GitHub ↗
(head: A, tail: List<A>)

Source from the content-addressed store, hash-verified

157}
158
159const makeCons = <A>(head: A, tail: List<A>): MutableCons<A> => {
160 const cons = Object.create(ConsProto)
161 cons.head = head
162 cons.tail = tail
163 return cons
164}
165
166const NilHash = Hash.string("Nil")
167const NilProto: Nil<unknown> = {

Callers 5

consFunction · 0.85
ofFunction · 0.85
fromIterableFunction · 0.85
List.tsFile · 0.85
partialFillFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected