(don't ask 😄 ) and I need to populate it by folding some stream of data. To preserve my sanity I'd like to use optics. Basically what i need to do is to append elements to the inner lists. How would I go about doing that?
p
pakoito
05/13/2020, 9:44 AM
.map { it.map { it + newValue } }
pakoito
05/13/2020, 9:44 AM
if It's just appending it isn't that bad
t
than_
05/13/2020, 10:56 AM
sure, can do that. I was hoping to be able to achieve the same with optics (educational purposes 🙂 ). After some tinkering I don't think it's possible.