Generation.Source.host: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/generation.bend as Generation Lines 28-32 of bend-trace-context@0.2.0.0/generation.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/generation.bend&start_line=28&end_line=32 import Base import bend-trace-context@0.2.0.0/entropy.bend as Entropy # The host source as the machine reads it: each read returns one word result # from Entropy.read_u32, and the state is Unit because the host keeps none. def Source.host(state: Unit) -> IO(Unit & Result<&1, &1, U32 & String, U32>): IO.bind(Result<&1, &1, U32 & String, U32>, Unit & Result<&1, &1, U32 & String, U32>, Entropy.read_u32(), word => IO.pure(Unit & Result<&1, &1, U32 & String, U32>, (state, word))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/entropy.bend&name=read_u32