mattdesl / mattdesl/array-range
Typed array/existing array as argument
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes we deal with Uint32Array or alike.
Would that be nice to support both dtype argument and existing array as argument:
let arr = range(10, 'uint32')
range(11, 15, arr.subarray(0, 4))
?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides a JavaScript usage example but names no implementation file or test. Start by locating the range API and its existing tests, then determine how a typed or existing array should be accepted alongside the dtype argument. Done means the shown Uint32Array/subarray usage works without breaking the current range forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100