Skip to content

Instantly share code, notes, and snippets.

@furquanuddin94
Last active November 25, 2020 10:10
Show Gist options
  • Save furquanuddin94/22fcd4ad2c1448b5b20c9a0fd003fa90 to your computer and use it in GitHub Desktop.
Save furquanuddin94/22fcd4ad2c1448b5b20c9a0fd003fa90 to your computer and use it in GitHub Desktop.
List(1, 2, 7, 3).map(value => value * 2) //output: List(2, 4, 14, 6)
List(1, 2, 7, 3).map(_ * 2) //output: List(2, 4, 14, 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment