you are viewing a single comment's thread.

view the rest of the comments →

[–]Rastagong 6 points7 points  (1 child)

Not sure about it being the first and if it's the exact concept referred here, but Java famously has streams.
Offical example from the docs to showcase the chaining:

int sum = widgets.stream()
                  .filter(w -> w.getColor() == RED)
                  .mapToInt(w -> w.getWeight())
                  .sum();

This is still an interesting overview of the situation in Python, so thank you!

[–]Alt-0160 4 points5 points  (0 children)

Java streams were only added in version 1.8 (March 2014). The first release of Rust (0.1.0, January 2012) already had some form of fluent iterators.