The areas / V33. Data structures and computation
Mathlib.Control.Combinators
2 declarations. Mathlib docs · Source
def joinM E1 #
{m : Type u → Type u} → [Monad m] → {α : Type u} → m (m α) → m α
Collapses two layers of monadic structure into one, passing the effects of the inner monad through the outer.
def condM E1 #
{m : Type → Type} → [Monad m] → {α : Type} → m Bool → m α → m α → m α
Executes tm or fm depending on whether the result of mbool is true or false
respectively.