Import from the curried versions of toolz
Open
Good First Issue
p3
- Dominant language
- Python
- Stars
- 335
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
### What was wrong?
`eth_utils.toolz` does not provide access to the curried versions of the methods
### How can it be fixed?
Add another `eth_utils.curried.toolz` module like the `eth_utils.toolz` one, but importing from `toolz.curried.*`.
Add smoke tests for at least one method from each subsection of https://toolz.readthedocs.io/en/latest/api.html -- like:
```py
from eth_utils.curried.toolz import drop
drop2 = drop(2)
assert list(drop2([4, 3, 2, 1])) == [2, 1]
```
Should also smoke test that non-curryable functions are working, like:
```py
from eth_utils.curried.toolz import compose
hexint = compose(hex, int)
assert hexint('10') == '0xa'
Contributor guide
Assessment
This issue has not been assessed yet.