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

Composing or extend PathModify[U,V] #34

Open
omidb opened this issue Jan 9, 2017 · 1 comment
Open

Composing or extend PathModify[U,V] #34

omidb opened this issue Jan 9, 2017 · 1 comment

Comments

@omidb
Copy link

omidb commented Jan 9, 2017

Is there any way to compose only PathModifies?

Something like following:

case class A(b:B)
case class B(c:C)
case class C(value:Int)
val a = A(B(C(0)))
val mod1 = a.modify(_.b)
val mod2 = mod1.somecomposefunction(_.c)
mod2.setTo(C(1))

I know that you can compose functions of U => PathModify[U, V] but I want to know if there is a way to compose PathModifys directly.

@adamw
Copy link
Member

adamw commented Jan 10, 2017

Currently, that's not possible. But of course possible to implement :)

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

2 participants