Re:JEP 443: Unnamed Patterns and Variables (Preview)
by kaba0 on Wednesday March 22, 2023 @03:22AM
(#35257864)
It is a contrived example, but the idea/code pattern isn’t — I have written plenty of code where I had to iterate over a collection with a for loop, but didn’t use the exact element.
But obviously for typical usage one should probably just use the stream API.
But obviously for typical usage one should probably just use the stream API.