def pick_end

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

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

90# The end pointer after linking n next to a (nil: n becomes that end).
91def pick_end(none: Bool, +n: U32, +e: U32) -> U32:
92  match none:
93    case True{}:
94      n
95    case False{}:
96      e

Uses (2)

Used by (3)