Hi, I have a structure `ListK<MapK<String,ListK<String>>>` (don't ask :smile: ) a...
t
Hi, I have a structure
ListK<MapK<String,ListK<String>>>
(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
.map { it.map { it + newValue } }
if It's just appending it isn't that bad
t
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.