Skip to content

Instantly share code, notes, and snippets.

@darionyaphet
Created April 27, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darionyaphet/9c79eebaebd5cd756f41eeb6ae6c5672 to your computer and use it in GitHub Desktop.
Save darionyaphet/9c79eebaebd5cd756f41eeb6ae6c5672 to your computer and use it in GitHub Desktop.
ScalaCollection
scala> Array(1,2,3,4,5,6,7).partition(_%2 == 0)
res1: (Array[Int], Array[Int]) = (Array(2, 4, 6),Array(1, 3, 5, 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment