-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Labels
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:
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:
from eth_utils.curried.toolz import compose
hexint = compose(hex, int)
assert hexint('10') == '0xa'