def peek_front

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

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

444def peek_front(~T: Data, s: DList<T>) -> DList<T> & Maybe<&2, T>:
445  DL{+tag, +fresh, +free, count, +head, +tail, +depth, +cap, vals, prevs, nexts} = s
446  peek_end(~T, tag, fresh, free, count, head, tail, depth, cap, vals, prevs, nexts, head, U32.is_eq(head, nil()))

Uses (6)

Used by (0)

No other definition uses this definition.