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

a pick using optics #292

Open
wcastand opened this issue Feb 1, 2023 · 0 comments
Open

a pick using optics #292

wcastand opened this issue Feb 1, 2023 · 0 comments

Comments

@wcastand
Copy link

wcastand commented Feb 1, 2023

would it be possible to create a pick that allow to use existing optic to collect the keys:

const user = { firstName: 't', lastName: 't', age: 1}

O.get(Opick(lFirstName, lLastname), user) // return =>  { firstName: 't', lastName: 't' }

maybe it's already possible or we need something more generic like a parallel where the optics are all run on the source object instead of piped?

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

No branches or pull requests

1 participant