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

jvmMain.io.github.lyxnx.util.time.Duration.kt Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
@file:JvmName("DurationJvmKt")

package io.github.lyxnx.util.time

import java.time.Duration

/**
 * Sums all the durations within this iterable
 *
 * If the iterable is empty, the result is [Duration.ZERO]
 */
public fun Iterable.sum(): Duration = fold(Duration.ZERO, Duration::plus)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy