Created
September 6, 2016 08:57
-
-
Save YuvalItzchakov/8922636e2fa8b5b0e060fb6f69adbd0e to your computer and use it in GitHub Desktop.
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).sliding(2).forall { | |
| case Array(x, y) => x < y | |
| case _ => true | |
| } | |
res4: Boolean = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment