Documentation

Init.Data.List.ControlImpl

@[inline]
def List.flatMapMTR {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : αm (List β)) (as : List α) :
m (List β)

Applies a monadic function that returns a list to each element of a list, from left to right, and concatenates the resulting lists.

Equations
Instances For
    @[specialize #[]]
    def List.flatMapMTR.loop {m : Type u → Type v} [Monad m] {α : Type w} {β : Type u} (f : αm (List β)) :
    List αList (List β)m (List β)
    Equations
    Instances For