Hello, a question that possibly has been asked alr...
# arrow
e
Hello, a question that possibly has been asked already. In the Lenses example for 2.0, how could you modify or set nested elements without the use of
notNull
in your specific example in the Web, let's consider that
val address:Address?
it would be good to see those examples considering a nullable data class that contains properties we want to modify or set, as I'm struggling with current api Thank you
a
you can use the regular
set
,
modify
, since they are regular lenses
e
Yes, but not for the nested type, like City for instance, because it's inside Address, which is nullable