lenses
lenses copied to clipboard
Elegant Data Manipulation with Lenses
Tests.
You know we need them.
In the now closed #9 we proposed adding type conversion lenses. In general we could have type conversion lenses - [ ] df2list (with suitable arg checking on `set`) -...
I was oggling r-lib/fs today and my goodness would filesystem lenses be amazing. ```r ext_l
The more I write lens code the less convinced I am that the `oscope` idea is useful, it might have just been me being too attached to the dplyr style...
Collapse them at `over`/`view`, this would facilitate editing lens stacks. @bcdarwin care to weigh in?
Some very simple things you might want to do with basic lenses turn out to violate the lens laws. For example ```r a
dope code
Following the sneaky logic of the lawful filter, it should be possible to implement lawful join lenses 🤯! Only downside is it would require me to rewrite all the joins...