def ascend_at

bend-collections@1.0.0.0 · src/containers/balanced_search_tree.bend:929

import bend-collections@1.0.0.0/src/containers/balanced_search_tree.bend as BalancedSearchTree
import Base

929def ascend_at(~K: Data, ~V: Data, ~cmp: K -> K -> Cmp, +x: Nat, +p: Nat, +forward: Bool, nodes: NodeStore<K>) -> NodeStore<K> & Ascend:
930  match p:
931    case 0n:
932      (nodes, Ascend{0n, 0n, True{}})
933    case 1n+ +i:
934      ascend_tag(~K, ~V, ~cmp, x, 1n+i, i, forward, ns_tag_at(~K, nodes, i))

Uses (9)

Used by (1)