Earlier quoted context omitted.
the Stream API is nice, but it is not extensible. I guess you have mistaken LINQ with the SQL style LINQ queryes, but it is actually a pack of feautures, the basis of all is the Extension Methods. Every LINQ query is just syntactic sugar for composed of some extension methods to IEnumerable . Without that LINQ is a bunch of extension methods giving an extensible fluent API much like the Streams API, but with true ext…
> How do you reverse a stream in java? By calling .reverse() on it, and making it iterate the other way around? > extension methods Extension methods are something that’s really really problematic, and easy to create confusion with. That said, I’d just import the functions I want to call on the stream into my local namespace with import static.
Edit: Just checked: https://docs.oracle.com/javase/8/docs/api/java/util/stream/S... no reverse().
Fyi for 1 year I have been working on a Stream API heavy app. Now working on a C# project with quite some LINQ. I know both sides to some extent...