-
Notifications
You must be signed in to change notification settings - Fork 31
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
pick function #5
Comments
This looks useful to me! Regarding your implementation, it would probably be best to implement it in FFI for performance reasons (as Oops, commented too early. But I would also suggest using Otherwise it looks good to me, nice suggestion! |
It would need to use the FFI anyway, since I don't really want to add a What are the use cases for this? |
In Redux when you connect a component to a state, and you want to match what you need as tight as possible (which is an optimisation). Another case how I am using it is when using
But then a component might just require a section of those css classes. Sure ffi is the way to go, it's just not accessible in try.purescript :) |
I guess the right place for the |
The only dependency that this will introduce is for |
- `Data.Record.pick` function - `Data.Record.RowLabels.RowLabels` class Maybe `RowLabels` class should be somewhere under `Type`. It depends on `Array` module (`cons`).
Confession: I was originally going to suggest using something like |
@paf31 would you accept a PR with a pick function, that picks a subrecord from a record.
The text was updated successfully, but these errors were encountered: