Junjie Wu
04/26/2022, 7:11 AMSequence<T>.drop(n: Int)
param type is Int
instead of Long
? I thought Kotlin’s sequence is equivalent to Java’s stream, and presuming the type should be the same as Stream<T> skip(long n);
Ruckus
04/26/2022, 7:13 AMI thought Kotlin’s sequence is equivalent to Java’s stream
No, they're not. They are similar in a number of ways, but are definitely not equivalent.
Junjie Wu
04/26/2022, 7:15 AMRuckus
04/26/2022, 7:20 AMJunjie Wu
04/26/2022, 7:23 AMRuckus
04/26/2022, 7:29 AMtoLong()
everywhere. Better to stick with int as that's what's used for sizes and indexes everywhere else in the stdlib.Ruckus
04/26/2022, 7:30 AMJunjie Wu
04/26/2022, 7:34 AMephemient
04/26/2022, 8:15 AMephemient
04/26/2022, 8:18 AM