Header menu logo Nu

WorldChain Module

Chain functions for the world.

Type extensions

Type extension Description

World.chain c stream world

Full Usage: World.chain c stream world

Parameters:

Execute a chain over the given stream. Allows each chained operation to run without referencing its source event, and without specifying its event handling approach by assuming Cascade.

Extended Type: World

c : Chain<Event<'a, Simulant>, unit>
stream : Stream<'a>
world : World

World.chainConstant c e world

Full Usage: World.chainConstant c e world

Parameters:
Returns: 'a

Run a chain to its end, providing 'e' for all its steps.

Extended Type: World

c : Chain<'e, 'a>
e : 'e
world : World
Returns: 'a

World.chainPlus c stream handling world

Full Usage: World.chainPlus c stream handling world

Parameters:
Returns: World -> unit

Execute a chain over the given stream.

Extended Type: World

c : Chain<Event<'a, Simulant>, unit>
stream : Stream<'a>
handling : Handling
world : World
Returns: World -> unit

World.chainUnit c world

Full Usage: World.chainUnit c world

Parameters:
Returns: 'a

Run a chain to its end, providing unit for all its steps.

Extended Type: World

c : Chain<unit, 'a>
world : World
Returns: 'a

Type something to start searching.