hey thanks everybody, I initially implemented myse...
# arrow
p
hey thanks everybody, I initially implemented myself folding the list such as
Copy code
options.fold(emptyList<Int>()) { total, next ->
        when (next) {
            None -> total
            is Some -> total + next.t
        }
    }
but flattenOption extension function is the one I was looking for 🙂