Skip to content

Instantly share code, notes, and snippets.

@bijancn
Last active May 30, 2018 09:21
Show Gist options
  • Save bijancn/081b0482fd6287eb42ea8308f6d7dc80 to your computer and use it in GitHub Desktop.
Save bijancn/081b0482fd6287eb42ea8308f6d7dc80 to your computer and use it in GitHub Desktop.
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