MCPcopy Create free account
hub / github.com/Effect-TS/effect / slice

Method slice

packages/effect/test/Stream.test.ts:3944–3948  ·  view source on GitHub ↗
(start?: number, end?: number)

Source from the content-addressed store, hash-verified

3942 let copied = 0
3943 class SliceCountingArray<A> extends globalThis.Array<A> {
3944 override slice(start?: number, end?: number) {
3945 const result = super.slice(start, end)
3946 copied += result.length
3947 return result
3948 }
3949 }
3950 const size = 1_000
3951 const large = Stream.fromArray(SliceCountingArray.from(Array.range(1, size)))

Callers 15

fileToModuleNameFunction · 0.80
Codegen.tsFile · 0.80
Plugin.test.tsFile · 0.80
assertionTargetFunction · 0.80
transformFunction · 0.80
requestFunction · 0.80
resolvedRequestFunction · 0.80
importFileMethod · 0.80
expandMoveFunction · 0.80
resolveRefFunction · 0.80
parseOpenApiFunction · 0.80
copyComponentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected