Sam
fold
operation
null
private inline fun <T, R> Iterable<T>.fold2(initial: R, operation: (acc: R, T) -> R?): R? = fold<T, R?>(initial) { acc, element -> operation(acc ?: return null, element) }
A modern programming language that makes developers happier.