arrow-core / arrow.core.extensions / OptionFoldable / foldLeft
open fun <A, B> OptionOf<A>.foldLeft(b: B, f: (B, A) -> B): B
Do you like Arrow?