Created
April 26, 2013 10:14
-
-
Save bmarcot/5466285 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
def mapFun[T, U](xs: List[T], f: T => U): List[U] = (xs foldRight List[U]())(f(_) :: _) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment