Some people say Java evolves slowly. I say, we got collections in 1998 and 💥 25 years later we (probably) get `List::getFirst` and `getLast`. 😁 But also a way for easy reverse iteration/streaming. Let's have a look! 🧵 (If you prefer video: youtube.com/watch?v=xBBuSh…)
5
29
126
0
23
In Java collections, there's the concept of "encounter order", which means that if a collection isn't changed, every iteration is guaranteed to show the same elements in the same order. All `List`s have that property, but `Set`s generally don't. `SortedSet`s on the other hand do.
@nipafx @tagir_valeev "... and ONLY 💥 25 years later ..." 🤣
@nipafx Thanks, great videos… 👏Do you know in which JDK may the Sequence Collections be released ? JDK19, JDK20, later…