Last active
May 30, 2018 09:21
-
-
Save bijancn/081b0482fd6287eb42ea8308f6d7dc80 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 addThree(list: List[Int]): List[Int] = { | |
val f = (item: Int) => item + 3 | |
list.map(f) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment