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

add more vector stuff and make sure it uses immutable vectors #133

Merged
merged 3 commits into from
Jul 18, 2015

Conversation

AlexKnauth
Copy link
Collaborator

closes #120
closes #125
closes #127

@jackfirth
Copy link
Owner

These should be provided by the unstable package and documented as well

@AlexKnauth
Copy link
Collaborator Author

Oh yeah I forgot.

(define (vector-ref-lens i)
(make-lens
(vector-ref _ i)
(vector-set _ i _)))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to my comment on the string-ref-lens, I think it would be simpler to build this atop list-ref-lens instead of implementing vector-set.

@AlexKnauth
Copy link
Collaborator Author

What do you think?

@jackfirth
Copy link
Owner

Merging the other one I think triggered the need for a rebase of this one

@AlexKnauth
Copy link
Collaborator Author

Ok I just rebased.

jackfirth added a commit that referenced this pull request Jul 18, 2015
add more vector stuff and make sure it uses immutable vectors
@jackfirth jackfirth merged commit 0bffdc3 into jackfirth:master Jul 18, 2015
@AlexKnauth AlexKnauth deleted the immutable branch July 18, 2015 02:48
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

Successfully merging this pull request may close these issues.

Vector pluck lens Vector ref nested lens Vector ref lens
2 participants