
name.remal.java.util.stream.DoubleStream.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-kotlin Show documentation
Show all versions of common-kotlin Show documentation
Java & Kotlin tools: common-kotlin
The newest version!
package name.remal
import java.util.*
import java.util.stream.DoubleStream
fun FloatArray.stream(): DoubleStream = Arrays.stream(this.toDoubleArray())
fun DoubleArray.stream(): DoubleStream = Arrays.stream(this)
fun DoubleStream.averageOrNull(): Double? = average().let { if (it.isPresent) it.asDouble else null }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy