You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iterable.sameElements(iterable) compiles in 2.12, but in 2.13 the recommended way to write this is to use iterable.iterator.sameElements(iterable). However, that form does not cross-compile with 2.12, because sameElements take an Iterator in 2.12, whereas it takes an IterableOnce in 2.13. We can produce 2.12-compatible code by producing iterable.iterator.sameElements(iterable.iterator) instead.
The text was updated successfully, but these errors were encountered:
julienrf
changed the title
Iterator#sameElements takes another Iterator as parameter
Iterator#sameElements has a different signature between 2.12 and 2.13
Jun 29, 2018
iterable.sameElements(iterable)
compiles in 2.12, but in 2.13 the recommended way to write this is to useiterable.iterator.sameElements(iterable)
. However, that form does not cross-compile with 2.12, becausesameElements
take anIterator
in 2.12, whereas it takes anIterableOnce
in 2.13. We can produce 2.12-compatible code by producingiterable.iterator.sameElements(iterable.iterator)
instead.The text was updated successfully, but these errors were encountered: