JuliaData / JuliaData/PooledArrays.jl
Constructor that accepts `refs` and `pool`
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 49
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes I'm starting with an existing array of Ints (refs), and a pool vector.
Is there a friendly way to make a PooledArray out of that? I couldn't find one - seems you have to go via the basic constructor with invpool = Dict(k => i for (k, i) in pool), then this gets turned back to pool in the constructor! A PooledArray(refs, pool) constructor would be useful.
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
Start by reading the existing PooledArray constructors and how they represent refs, pool, and invpool. Add support for constructing from the stated refs array and pool vector, then verify that the resulting PooledArray preserves those values and can be used like one created through the existing constructor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100