The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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.