Slide 71
Slide 71 text
// traverseList[Option, A, B]
def traverseOption[A, B]
(as: List[A])(f: A => Option[B]): Option[List[B]]
// traverseList[Either[E, ?], A, B]
def traverseEither[A, B]
(as: List[A])(f: A => Either[E, B]): Either[E, List[B]]
// traverseList[State[S, ?], A, B]
def traverseState[A, B]
(as: List[A])(f: A => State[S, B]): State[S, List[B]]