RFC: fix inconsistent thunk API on unique / flatten / flattenDeep #12
roxdavirox
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background
Three functions in the
arraymodule require an unnecessary extra call before receiving data:Every other function in the module follows the curried data-last style without a leading thunk:
This is tracked in issue #1.
Proposed change
Remove the thunk and accept the array directly:
This is a breaking change (minor in terms of impact — the thunk was useless, callers just need to remove one
()).Questions for discussion
Related: #1
All reactions