MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / zipCount

Function zipCount

src/compute-engine/library/collections.ts:3224–3231  ·  view source on GitHub ↗
(expr: Expression)

Source from the content-addressed store, hash-verified

3222 * handlers it invokes are numbered from `firstOrdinal` again (`site`), the
3223 * ordinal after those the handler's other operands took. */
3224function beginFoldPass(state: FoldRefinementState, firstOrdinal: number): void {
3225 state.nextOrdinal[state.depth] = firstOrdinal;
3226}
3227
3228/**
3229 * The key of the running fold in `records`: its site (`site`), or
3230 * `undefined` for the outermost fold (nothing re-canonicalizes it within its
3231 * own window).
3232 */
3233function foldSiteKey(state: FoldRefinementState): string | undefined {
3234 return state.depth < 2 ? undefined : state.site.join('.');

Callers 1

collections.tsFile · 0.85

Calls 3

isFunctionFunction · 0.90
mapMethod · 0.65
isFiniteMethod · 0.45

Tested by

no test coverage detected