Metadata-Version: 2.1
Name: jstream
Version: 0.4
Summary: Simple stream tool like java
Home-page: https://github.com/github-yxb/jstream
Author: yuanxb
Author-email: 
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# JStream
Is a simple tool like Java stream.

## install
pip install jstream

## example

``` python
from JStream import JStream, collectors

s = JStream([1,2,3,4,5,6,7,8,9,10])
s.filter(lambda x: x % 2 == 0).sum()

s.filter(lambda x: x >= 5).collect(collectors.GroupingByCollector(lambda x: x % 2))
```
