We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this object
case class Foo(foo: List[Int], idx: Int)
How can I create lens like this?
modifyLens[Foo](_.foo.index(_.idx))
The text was updated successfully, but these errors were encountered:
I'm afraid such constructs are not supported by quicklens - so you'll need to handle this by hand.
Sorry, something went wrong.
Thanks. Do you mean like this?
PathLazyModify[Foo, Int]((x, fn) => x.modify(_.foo.index(x.idx)).using(fn))
Yes, exactly! I'll close this issue since you kind of resolved it yourself :)
No branches or pull requests
I have this object
How can I create lens like this?
modifyLens[Foo](_.foo.index(_.idx))
The text was updated successfully, but these errors were encountered: