<commit_before>ks
==

**ks** is a minimal library that implements lazy
data structures, mainly meant for functional
styled programs. Performance is a secondary
concern, elegance is the first concern and as
such sometimes we sacrifice performance for an
easier way/more elegant way.

```python
from ks.stream import Stream
from ks.mapping import LazyMap

s = (Stream(1, 2, 3) << 'abc').use(str)
assert ''.join(s) == '123abc'

m = LazyMap([(1,2), (2,3), (3,4)])
assert m[2] == 3
assert m[3] == 4
```<commit_msg>fix example in readme<commit_after>ks
==

**ks** is a minimal library that implements lazy
data structures, mainly meant for functional
styled programs. Performance is a secondary
concern, elegance is the first concern and as
such sometimes we sacrifice performance for an
easier way/more elegant way.

```python
from ks.stream import Stream
from ks.mapping import LazyMap

s = (Stream([1, 2, 3]) << 'abc').use(str)
assert ''.join(s) == '123abc'

m = LazyMap([(1,2), (2,3), (3,4)])
assert m[2] == 3
assert m[3] == 4
```
{'fraction_non_alphanumeric': 0.13618677042801555, 'fraction_numerical': 0.0311284046692607, 'mean_word_length': 4.913793103448276, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103643', 'n_tokens_mistral': 357, 'n_tokens_neox': 338, 'n_words': 137}