~/bend-docscommunity

machine_conditions.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/machine_conditions.bend as Machine_conditions

1 import
import Base

Types

type Tree source · line 5 · raw

@Atom:Data -> Data

Atom is the caller's schema-bound heterogeneous condition shape. Env is only captured machine metadata; the world and its component owners remain Type.

Templates

template all source · line 12 · raw

@-Atom:Data -> @items:List<&2, Tree<Atom>> -> Tree<Atom>

template any source · line 16 · raw

@-Atom:Data -> @items:List<&2, Tree<Atom>> -> Tree<Atom>

template both_next source · line 21 · raw

@-Env:Data -> @first:Bool -> @env:Env -> @next:(@_:Env -> Bool) -> Bool

template either_next source · line 25 · raw

@-Env:Data -> @first:Bool -> @env:Env -> @next:(@_:Env -> Bool) -> Bool

template evaluate source · line 30 · raw

@-Atom:Data -> @-Env:Data -> @-leaf:(@_:Atom -> @_:Env -> Bool) -> @tree:Tree<Atom> -> @+env:Env -> Bool