reduceOrNull

inline fun <B> reduceOrNull(initial: (A) -> B, operation: (acc: B, A) -> B): B?(source)