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

Modulo lens #288

Open
AlexKnauth opened this issue Sep 15, 2016 · 3 comments · May be fixed by #289
Open

Modulo lens #288

AlexKnauth opened this issue Sep 15, 2016 · 3 comments · May be fixed by #289
Assignees

Comments

@AlexKnauth
Copy link
Collaborator

Something like:

> (lens-view (modulo-lens 10) 16)
6
> (lens-set (modulo-lens 10) 16 9)
19
@jackfirth
Copy link
Owner

Ou, that's neat

@jackfirth
Copy link
Owner

Seems like something that should go in a library of math-specific lenses

@AlexKnauth
Copy link
Collaborator Author

AlexKnauth commented Sep 16, 2016

I was thinking something like lens/data/number, in the lens-data package. (Edit: that would be where this would go if/when it's moved out of unstable)

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 a pull request may close this issue.

2 participants