Saharath Kleips
09/01/2021, 5:59 PMvalue class Box(val str: String)
val letters: List<String> = listOf("A","B","C",...)
val boxes: List<Box> = letters.map(::Box)
val backToLetters: List<String> = boxes.map(Box::str)
Are there any costs associated with moving between a List<String>
and List<Box>
and vice versa?ephemient
09/01/2021, 6:03 PMZak Henry
09/01/2021, 6:16 PMephemient
09/01/2021, 6:18 PMephemient
09/01/2021, 6:21 PMZak Henry
09/01/2021, 6:24 PMCLOVIS
09/02/2021, 1:21 PMStephan Schroeder
09/03/2021, 2:12 PM@JvmInline
infront of value class
, don't you!?