All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.java.util.stream.DoubleStream.kt Maven / Gradle / Ivy

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