Created
September 29, 2016 18:44
-
-
Save pfcoperez/cea64d5b3dd37fa78b5b653d151cb08f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val l = (1 to 3).map(x => ((x-1)*10 until x*10) toList) toList | |
l.foldRight(List.empty[Int]) { case (sl,acc) => sl.foldRight(acc) { case (v, l) => v :: l } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment