def peek_end

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

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

437def peek_end(~T: Data, +tag: U32, +fresh: U32, +free: U32, count: Nat, +head: U32, +tail: U32, +depth: Nat, +cap: U32, vals: Array<Maybe<&2, T>>, prevs: Array<U32>, nexts: Array<U32>, +l: U32, empty: Bool) -> DList<T> & Maybe<&2, T>:
438  match empty:
439    case True{}:
440      (DL{tag, fresh, free, count, head, tail, depth, cap, vals, prevs, nexts}, None{})
441    case False{}:
442      peek_fin(~T, tag, fresh, free, count, head, tail, depth, cap, prevs, nexts, Array.get(Maybe<&2, T>, vals, slot(l)))

Uses (11)

Used by (2)