Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Conversation

@petejohanson
Copy link

In working with a lens that's returning an 'a option, and I would like to combine w/ a lens that is Lens<'a, 'b option>, I found a need for an equivalent of Option.mapLens, but for one that returns an option.

This adds Option.bindLens, but I'm not sure if this is really a perfect name for this function.

Thoughts?

@panesofglass
Copy link
Contributor

Option.chooseLens?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants