def wrap

bend-collections@1.0.0.0 · src/crypto/random.bend:52

import bend-collections@1.0.0.0/src/crypto/random.bend as Random
import Base
import bend-collections@1.0.0.0/src/math/random/chacha8.bend as C8

52def wrap(m: Maybe<&2, C8.ChaCha8>) -> Maybe<&2, Gen>:
53  match m:
54    case None{}:
55      None{}
56    case Some{c}:
57      Some{G{c, []}}

Uses (4)

Used by (1)