def write_next

bend-collections@1.0.0.0 · src/containers/internal/intrusive_list.bend:47

import bend-collections@1.0.0.0/src/containers/internal/intrusive_list.bend as IntrusiveList
import Base

47def write_next(~S: Type, ~N: Data, ~set_next: S -> N -> Maybe<&2, N> -> S, s: S, +at: Maybe<&2, N>, +node: Maybe<&2, N>) -> S:
48  match at:
49    case None{}: s
50    case Some{a}: set_next(s, a, node)

Uses (1)

Used by (1)