Suppose I have the following case class (I'm using Scala 2.13):
case class Foo(
a: Int,
b: Int,
...,
z: Int,
noLens: Int
)
Is there any way to use @Lenses to create lenses for all fields except noLens? I tried using private val or multiple parameter lists, but both cases resulted in a compilation error. I know I can manually create all the other lenses, but that's very verbose.
Suppose I have the following
case class
(I'm using Scala 2.13):Is there any way to use
@Lenses
to create lenses for all fields exceptnoLens
? I tried usingprivate val
or multiple parameter lists, but both cases resulted in a compilation error. I know I can manually create all the other lenses, but that's very verbose.Thanks