def get_v

bend-collections@1.0.0.0 · src/containers/hash_table.bend:459

import bend-collections@1.0.0.0/src/containers/hash_table.bend as HashTable
import Base

459def get_v(-V: Data, dflt: V, r: Array<Maybe<&2, V>> & Maybe<&2, V>) -> Array<Maybe<&2, V>> & V:
460  (vs, mv) = r
461  match mv:
462    case None{}:
463      (vs, dflt)
464    case Some{v}:
465      (vs, v)

Uses (4)

Used by (1)