foldLeft

inline fun <B> foldLeft(b: B, f: (B, A) -> B): B(source)

apply the given function to the value with the given B when valid, otherwise return the given B