Created
January 13, 2016 20:45
-
-
Save oxbowlakes/956164ac429eddcfb9ad to your computer and use it in GitHub Desktop.
This file contains 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> val it = Traversable(1); it foreach (i => println(s"$i and ${it.isEmpty}")) | |
1 and false | |
scala> val it = Iterator(1); it foreach (i => println(s"$i and ${it.isEmpty}")) | |
1 and true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment