Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor that accepts refs and pool #38

Open
kcajf opened this issue Oct 15, 2020 · 1 comment
Open

Constructor that accepts refs and pool #38

kcajf opened this issue Oct 15, 2020 · 1 comment

Comments

@kcajf
Copy link

kcajf commented Oct 15, 2020

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.

@quinnj
Copy link
Member

quinnj commented Oct 15, 2020

Yeah, this would useful; mind making a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants