<commit_before>iterextra
=========

An extension to Python standard library itertools

Usage
-----

chaincall - chains function calls so that result of previous function is passed as argument to next one. 

```python

import iterextra

to_bool = iterextra.chaincall(int, bool)

assert to_bool("1")
assert not to_bool("0")

```

pick - helper function to make fetching member of list of objects a little more
       clear

```
import iterextra

lst = [complex(1.0, 2.0), complex(1.5, 2.5)]

assert map(pick('imag'), lst) == [1.5, 2.5]
```
<commit_msg>syntax highlighting in README<commit_after>iterextra
=========

An extension to Python standard library itertools

Usage
-----

chaincall - chains function calls so that result of previous function is passed as argument to next one. 

```python

import iterextra

to_bool = iterextra.chaincall(int, bool)

assert to_bool("1")
assert not to_bool("0")

```

pick - helper function to make fetching member of list of objects a little more
       clear

```python
import iterextra

lst = [complex(1.0, 2.0), complex(1.5, 2.5)]

assert map(pick('imag'), lst) == [1.5, 2.5]
```

{'fraction_non_alphanumeric': 0.13012477718360071, 'fraction_numerical': 0.024955436720142603, 'mean_word_length': 4.058558558558558, 'pattern_counts': {'":': 0, '<': 3, '<?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': '391246', 'n_tokens_mistral': 388, 'n_tokens_neox': 369, 'n_words': 132}