[−][src]Macro monadic::mdo
macro for iterables (IntoIterator) as monads enabling monad comprehensions over iterables
You can use:
pure return_expresion
to return an expression valuemonadic_expression
to end with a monad expressionv <- pure return_expresion
to lift a rhs expression value with Option::pure(x)v <- monadic_expression
to use the monad result&v <- &container
to use a reference item result from a by reference container_ <- monadic_expression
to ignore the monad resultlet z = expression
to combine monad resultsguard boolean_expression
to filter results