Skip to content

Instantly share code, notes, and snippets.

@Krasnyanskiy
Created July 14, 2016 20:25
Show Gist options
  • Save Krasnyanskiy/776ebc2fbb01484fdfe132e19bde613a to your computer and use it in GitHub Desktop.
Save Krasnyanskiy/776ebc2fbb01484fdfe132e19bde613a to your computer and use it in GitHub Desktop.
-scala: PF style
val collected = list collect { case 1 => 2 case 2 => 1 case 3 => 0 }
collected foreach println
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment