Created
April 27, 2017 10:12
-
-
Save darionyaphet/9c79eebaebd5cd756f41eeb6ae6c5672 to your computer and use it in GitHub Desktop.
ScalaCollection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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