@optics data class test( 1,2,...23) { companion object }
[ERROR] Iso generation is supported for data classes with up to 22 constructor parameters.
@optics data class test( 1,2,...23) { companion object }
[ERROR] Iso generation is supported for data classes with up to 22 constructor parameters.
bodduluri,
In Arrow-kt we only support automatic generation for
Isoup to22 parameters. The reason for this is that Arrow only hasTuple3->Tuple22defined.PairandTriplefrom Kotlin Std are also used.The example you shared
data class test( 1,2,...23)has 23 parameters, so Arrow cannot generate the desiredIso.You can still automatically genrate
LensandOptionalfor yourdata classby specifying@optics(arrow.optics.OpticsTarget.Lens, arrow.optics.OpticsTarget.Optional).