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

Add Option.bindLens function. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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