Ben Butterworth
11/04/2020, 9:20 PMFloatIterator
?, we already have Iterator<Float>
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-float-iterator/fred.deschenes
11/04/2020, 9:21 PMnanodeath
11/04/2020, 9:22 PMBen Butterworth
11/04/2020, 9:27 PMCasey Brooks
11/04/2020, 9:28 PMFloatArray
, FloatRange
, FloatProgression
, etc. for all the primitive types, for similar reasons. Seems like, generally, all data structures of primitives have dedicated classes so the compiler can optimize them to avoid boxing/unboxingnanodeath
11/04/2020, 9:38 PMBen Butterworth
11/04/2020, 9:56 PMnanodeath
11/04/2020, 10:01 PMpublic interface BaseStream<T,S extends BaseStream<T,S>>
I know how to use streams, but dive into the implementation and it quickly becomes ... well, more complicated than it seems like it should be. that's one thing I like about Sequences -- mostly they have easy-to-understand implementationsBen Butterworth
11/04/2020, 10:29 PMS
because within BaseStream, it is already usable (Self
is the implementing type). I guess this isn’t possible with Kotlin? The closest is reified types, but this is for functions onlyZach Klippenstein (he/him) [MOD]
11/04/2020, 10:38 PM