Back to Fpinscala

20.Answer

answerkey/datastructures/20.answer.md

latest154 B
Original Source
scala
/*
This could also be implemented directly using `foldRight`.
*/
def flatMap[A,B](l: List[A], f: A => List[B]): List[B] =
  concat(map(l, f))