Should we curry / combine arguments?
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We could combine arguments to the initial wrap and the final task making call
``` js
function add(a, b) { return a + b }
const makeAdd2 = voTask(add, 2)
const add2to5 = makeAdd2(5)
add2to5.fork(...) // result is 7
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the existing voTask API and the example in this issue. Determine whether initial arguments should be accepted by voTask and whether the returned function should accept the remaining arguments before producing a task. Done means the proposed add example works and the intended argument-combining behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100