nicopasso
03/03/2019, 11:02 AM@optics
data class SalesProductLine(val id: Int, val products: ListK<SalesProduct>) {companion object}
vs
val productLineLens: Lens<SalesProductLine, ListK<SalesProduct>> =
Lens(
get = { pl -> pl.salesProducts },
set = { pl: SalesProductLine, products -> pl.copy(salesProducts = products )}
)
productLineLens.every(ListK.each()) ... ....
What could it be the reason for not having the code generated by the optics annotation?