dave08
08/02/2023, 8:58 AM@optics data class Foo(val list: List<Bar>)
@optics data class Bar(val id: Int, val isChecked: Boolean)
// I need to change isChecked for say, a Bar that's id (NOT index in list) is 2?
simon.vergauwen
08/28/2023, 6:30 AMIndex
https://apidocs.arrow-kt.io/arrow-optics/arrow.optics.typeclasses/-index/index.html type.
I see it's documentation is a bit less than desired in the API docs, and it's also not mentioned on the website. I think an issue for that is in order.dave08
08/28/2023, 12:53 PMindex
and at
in this case, and I think that the default implementations of index use the index in the list... whereas I needed to use an index from the object itself, so I had to implement my own