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

Implement mutable Vector's using mutable Array's #144

Closed
utdemir opened this issue Aug 27, 2020 · 0 comments · Fixed by #173
Closed

Implement mutable Vector's using mutable Array's #144

utdemir opened this issue Aug 27, 2020 · 0 comments · Fixed by #173
Assignees

Comments

@utdemir
Copy link
Contributor

utdemir commented Aug 27, 2020

Currently, Data.Vector.Mutable.Linear and Data.Vector.Mutable.Array have separate, but similar implementations. We can remove some duplication via implementing the Vector in terms of Array.

  • Arrays should be ordinary arrays with read and write functions working with indexes and with an explicit resize functionality.
  • Vectors should growable arrays supporting push and pop operations efficiently by maintaining some spare capacity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant