stefano.maffullo
11/25/2017, 3:19 PMjamie-purchase
11/25/2017, 3:22 PMArrayList<Object>
and cast them in and out... or create a class that has a property of either Double or String and have an ArrayList<MyClass>
but as for Kotlin likely far better waysArrayList<Pair...
karelpeeters
11/25/2017, 3:25 PMEither
from either #funktionale or #kategory.cedric
11/25/2017, 3:31 PMEither
)stefano.maffullo
11/25/2017, 3:37 PMcedric
11/25/2017, 3:38 PMdata class MyStructure { val d: Double, val s: String }
and put that in your liststefano.maffullo
11/25/2017, 3:48 PMcedric
11/25/2017, 3:52 PMArrayList
.listOf()
or mutableListOf()
stefano.maffullo
11/25/2017, 4:01 PMjamie-purchase
11/25/2017, 4:39 PMcedric
11/25/2017, 4:49 PM