Skip to content

Commit 6d5e3f2

Browse files
1 parent d12121e commit 6d5e3f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/stdlib/Iterables.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ object Iterables extends AnyFlatSpec with Matchers with org.scalaexercises.defin
174174
xs.zipWithIndex should be(List((res0, 0), (res1, res2), (res3, 2)))
175175
}
176176

177-
/** `sameElements` will return true if the two `Iterables` produce the same elements in the same order:
177+
/** `sameElements` will return true if the two `Iterables` produce the same elements in the same order.
178+
* The iterator for a set created with less than 5 values will return elements in the order in which they were added, rather than the consistent, hash-based ordering used by iterators for larger Sets:
178179
*/
179180
def sameElementsIterables(res0: Boolean, res1: Boolean, res2: Boolean, res3: Boolean) = {
180181
val xs = List("Manny", "Moe", "Jack")

0 commit comments

Comments
 (0)