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

An idea for indexed optics #71

Open
paf31 opened this issue Aug 13, 2017 · 0 comments
Open

An idea for indexed optics #71

paf31 opened this issue Aug 13, 2017 · 0 comments

Comments

@paf31
Copy link
Contributor

paf31 commented Aug 13, 2017

We can abstract over the Category being used to mix indexed and regular optics. Varying the monoid of indexes lets us keep all indices, only the first, only the last, etc.

Here is a prototype I made:

http://try.purescript.org/?backend=thermite&gist=76df2c01deeaa6c0cafe52655e710789

This seems worth looking into, even if only to figure out what the trade-offs are.

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

No branches or pull requests

1 participant