|
|
|
|
|
by jfager
4169 days ago
|
|
The main reason they build these on Stream rather than Iterable is b/c they wanted to include the `parallel()` method, which works via "spliterators" rather than plain old iterators. In other words, in order to support a gimmick you can actually use in production in a maybe a handful of use cases, they complicated the api for the use cases you hit 99% of the time. Awesome. |
|
If you think that api is complicated then I don't think programming is for you, this is a very ordinary and usual construct in programming.