def rmf_found

bend-collections@1.0.0.0 · src/containers/internal/dlist_storage.bend:410

import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as DlistStorage
import Base

410def rmf_found(~T: Data, +tag: U32, +fresh: U32, +free: U32, count: Nat, +head: U32, +tail: U32, +depth: Nat, +cap: U32, prevs: Array<U32>, nexts: Array<U32>, +i: U32, r: Array<Maybe<&2, T>> & Maybe<&2, T>) -> DList<T> & Maybe<&2, T>:
411  (vals, m) = r
412  match m:
413    case None{}:
414      (DL{tag, fresh, free, count, head, tail, depth, cap, vals, prevs, nexts}, None{})
415    case Some{v}:
416      rmf_links(~T, tag, fresh, free, count, head, tail, depth, cap, Array.set(Maybe<&2, T>, vals, i, None{}), i, v, link_at(prevs, i), link_at(nexts, i))

Uses (10)

Used by (1)