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

get/set lenses (for Immutable.js, among others) #29

Open
serras opened this issue Sep 30, 2020 · 3 comments
Open

get/set lenses (for Immutable.js, among others) #29

serras opened this issue Sep 30, 2020 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@serras
Copy link
Collaborator

serras commented Sep 30, 2020

Stealing a great idea from partial.lenses, if we provide a special lens which simply calls get and set on the object, we can easily interoperate with Immutable.js without dependencies!

@serras serras self-assigned this Sep 30, 2020
@kutyel kutyel added enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed labels Sep 30, 2020
@serras
Copy link
Collaborator Author

serras commented Sep 30, 2020

This would also work for Map

@serras
Copy link
Collaborator Author

serras commented Sep 30, 2020

We should also check that values works for all these. Otherwise, it should be as easy as changing the getter in values to [...obj.values()], so it works everywhere an iterator can be obtained.

@bangn
Copy link
Contributor

bangn commented Oct 2, 2020

Im new to opticsjs source code as well as lense 😬. Any pointer where should I look into 🤔?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants