MCPcopy
hub / github.com/Effect-TS/effect / head

Method head

packages/effect/src/internal/ringBuffer.ts:15–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 }
14
15 head(): Option.Option<A> {
16 return Option.fromNullable(this.array[this.current])
17 }
18
19 lastOrNull(): A | undefined {
20 if (this.size === 0) {

Callers 15

HttpClient.test.tsFile · 0.80
getUsageFunction · 0.80
parseInternalFunction · 0.80
simplifyFunction · 0.80
headFunction · 0.80
Schema.tst.tsFile · 0.80
Iterable.test.tsFile · 0.80
List.test.tsFile · 0.80
STM.test.tsFile · 0.80
Array.test.tsFile · 0.80
traversing.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

interleaveFunction · 0.64