Metadata-Version: 2.1
Name: nr.stream
Version: 0.2.2
Summary: Use iterators like Java streams.
Home-page: https://github.com/NiklasRosenstein/nr-python
Author: Niklas Rosenstein
Author-email: rosensteinniklas@gmail.com
License: MIT
Platform: UNKNOWN
Requires-Python: >=3.5.0,<4.0.0
Description-Content-Type: text/markdown
Requires-Dist: nr.pylang.utils (<1.0.0,>=0.1.0)
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'


> Note: This package is in the dangerous land of `0.x.y` versions and may be subject to breaking
> changes with minor version increments.

# nr.stream

Provides a `Stream` class which allows chained operations on a stream of values.

## Example

```py
from nr.stream import Stream

values = [3, 6, 4, 7, 1, 2, 5]
assert list(Stream(values).chunks(values, 3, fill=0).map(sum)) == [13, 10, 5]
```

---

<p align="center">Copyright &copy; 2020 Niklas Rosenstein</p>



