Skip to content

Instantly share code, notes, and snippets.

@stephanos
Created October 28, 2012 08:41
Show Gist options
  • Save stephanos/3968078 to your computer and use it in GitHub Desktop.
Save stephanos/3968078 to your computer and use it in GitHub Desktop.
val numbers = List(1, 2, 3, 4, 5, 6)
val oddNumbers = numbers.filter(_ % 2 != 0)
println("oddNumbers = " + oddNumbers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment