MCPcopy Create free account
hub / github.com/TanStack/db / indexedValue

Function indexedValue

packages/db-ivm/src/operators/topKArray.ts:9–14  ·  view source on GitHub ↗
(
  value: V,
  index: FractionalIndex,
)

Source from the content-addressed store, hash-verified

7export type IndexedValue<V> = [V, FractionalIndex]
8
9export function indexedValue<V>(
10 value: V,
11 index: FractionalIndex,
12): IndexedValue<V> {
13 return [value, index]
14}
15
16export function getValue<V>(indexedVal: IndexedValue<V>): V {
17 return indexedVal[0]

Callers 3

insertMethod · 0.85
insertMethod · 0.85
#findIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected