Chacha8.next: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend as Chacha8 Lines 77-85 of bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend&start_line=77&end_line=85 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W # the next 64-bit output (a refill always yields a nonempty buffer) def next(g: ChaCha8) -> W.U64 & ChaCha8: match g: case C{+k, p, buf}: match buf: case Con{x, rest}: (x, C{k, p, rest}) case Nil{}: pop(refill(k, p)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend&name=ChaCha8 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend&name=pop https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend&name=refill https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend&name=U64