rrader
02/05/2018, 8:50 AMhho
02/05/2018, 9:42 AMstartsWith
)diesieben07
02/05/2018, 9:45 AM^.{startIndex}...
.rrader
02/08/2018, 11:38 AMkevinmost
02/08/2018, 1:23 PMrrader
02/08/2018, 1:46 PMoverride
on method, so "isOverridden" from child point of view, not from parentkevinmost
02/08/2018, 1:49 PMrrader
02/08/2018, 1:50 PMkevinmost
02/13/2018, 3:14 PMList
backed by an ArrayList
being the performance benefits? I'd use them wherever I'm currently using normal collections, though I assume the Java interop would be hairy so in those scenarios, I might revert back to the current "immutable-but-not-actually" collectionsilya.gorbunov
02/15/2018, 2:36 PMkevinmost
02/15/2018, 2:38 PMjkbbwr
02/15/2018, 2:41 PMjkbbwr
02/15/2018, 2:42 PMdalexander
02/15/2018, 2:45 PMilya.gorbunov
02/15/2018, 2:48 PMArrayList
analogue in the land of immutable collections. The same ImmutableList interface can be backed by different data structures, providing different performance trade-offs. For example one can have fast add to the end, provide sequential accesss and reasonably fast indexed acccess, but at a cost of very expensive remove.ilya.gorbunov
02/15/2018, 2:52 PMdalexander
02/15/2018, 2:55 PMkevinmost
02/15/2018, 3:11 PMdave08
02/15/2018, 8:02 PMmap
or forEach
these list need to be appended to mostly, but then used in operater chains. No removal though...karelpeeters
02/15/2018, 8:03 PMflatMap
calls.miha-x64
02/20/2018, 8:20 PMlistOf(null).firstOrNull()
looks ambiguous. Shouldn't *OrNull
operations be for <T : Any>
?karelpeeters
02/21/2018, 1:21 AMmiha-x64
02/21/2018, 10:27 AMnullableCollection.*OrNull()
cannot be done right, this is a logical error.
When you change your collection type to nullable, all *OrNull calls start working ambiguously, which I'd prefer to be warned about.karelpeeters
02/21/2018, 10:33 AMnull
. It's true that you can't use the nullability of the return value to check whether the collection had a first element, but maybe that's not what you needed at all.asad.awadia
02/21/2018, 5:21 PMdata class Todo(val id: Int, val todo: String, val completed: Boolean)
why does Json.decodeValue(jsonStr, Todo::class.java)
not allow me to access the fields?asad.awadia
02/21/2018, 6:26 PMimport com.sun.tools.javac.comp.Todo
🤦jw
02/26/2018, 5:35 PMmg6maciej
02/26/2018, 5:43 PMmapIndexed
will work for me.raulraja
02/26/2018, 7:16 PMTupleN
possible arities. Data classes could have had .tupled
and .fromTupled
as synthetic methods like they have now with copy
allowing operations such as these kinds of zips to propagate directly to the target user defined data classeskarelpeeters
02/26/2018, 7:17 PM