def OMap.to_list.go

bend-kit-collections@0.1.4.1 · omap.bend:215

import bend-kit-collections@0.1.4.1/omap.bend as Omap
import Base

215def OMap.to_list.go(
216  -K: Data, -V: Data, m: OMap<K, V>, acc: List<&1, K & V>
217) -> List<&1, K & V>:
218  match m:
219    case OTip{}:
220      acc
221    case OBin{s, k, v, lo, hi}:
222      OMap.to_list.go(K, V, lo, (k, v) <> OMap.to_list.go(K, V, hi, acc))

Uses (4)

Used by (1)