paulblessing
06/22/2018, 3:52 PMhho
06/22/2018, 5:00 PM.toList()
? They also have to add to the ArrayList
all the sequence's elements – copying the array when they run out of space and all.
IMO they could've just added something like inline fun <reified T> Sequence<T>.toTypedArray(): Array<T> = this.toList().toTypedArray()
and be done with it.