noneOrSingle |
fun <T> Iterable<T>.noneOrSingle(predicate: (T) -> Boolean): T?
Returns the single element matching the given predicate, or fun <T> Iterable<T>.noneOrSingle(): T?
Returns single element, or |
sum |
fun Iterable<BigDecimal>.sum(): BigDecimal
Return the sum of an Iterable of BigDecimals. |