def map_outputs

bend-collections-laws-math@1.0.0.0 · spec/math/random.bend:63

import bend-collections-laws-math@1.0.0.0/spec/math/random.bend as Random
import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/random/chacha8.bend as C8
import bend-collections-laws-math@1.0.0.0/spec/math/random/source.bend as SRC

63def map_outputs(+n: Nat, m: Maybe<&2, C8.ChaCha8>) -> Maybe<&2, List<&2, W.U64>>:
64  match m:
65    case None{}:
66      None{}
67    case Some{g}:
68      Some{SRC.outputs(~C8.ChaCha8, ~C8.next, n, g)}

Uses (7)

Used by (4)