def pick_link

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

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

58# A link as the Maybe the public API reports.
59def pick_link(none: Bool, +l: U32) -> Maybe<&2, U32>:
60  match none:
61    case True{}:
62      None{}
63    case False{}:
64      Some{l}

Uses (3)

Used by (1)