Behzod
07/21/2025, 3:52 PMStefan Oltmann
07/21/2025, 9:44 PMkqr
07/22/2025, 8:05 AMImportant: Compose usescomparison for keys, not identity comparison. This means if you pass aequals()
as a key, it compares the list contents. So mutating a list in-place won't invalidate the cache—you need a new list instance.List<String>
Indra
07/23/2025, 5:06 AM<https://pl.kotl.in/xCKSmaoC->
Indra
07/23/2025, 5:20 AMsimpleSlot.addSample(originalList)
line into simpleSlot.addSample(originalList.toList())
Then I think we can use a List<String> as a key for the remember
part. because then the one that gets remembered is a fresh copy. Kind of like what happen in Swift language by default if I'm not wrong.kqr
07/25/2025, 6:49 AM