-
Notifications
You must be signed in to change notification settings - Fork 70
Add unsafeThaw to Data.Array.ST? #118
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
Comments
👍 Sounds good to me. |
Going to make a PR for this since nobody has done it, but I think it would also be nice to have PRs to implement the immutable array functions for ST arrays, even if internally they just use |
matthewleon
added a commit
to matthewleon/purescript-arrays
that referenced
this issue
Jan 19, 2018
addresses purescript#118
Merged
matthewleon
added a commit
to matthewleon/purescript-arrays
that referenced
this issue
Jan 20, 2018
addresses purescript#118
Resolved by #123. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to be able to create an array using one of the existing functions for immutable arrays (e.g.
range
), and then use it locally within a function, but not return a reference to it. I would also like to be able to do this with a minimum of copying. Currently I think the best I can do is to usethaw
orwithArray
, which make a copy of it; if I know that no references to my array can escape I should be able to get away without copying it. Could we possibly add anunsafeThaw
, which has the same type asthaw
but just returns a reference to the same array instead of copying?The text was updated successfully, but these errors were encountered: