Another alternative using Array:
let a = Some(3)
let b = Some(5)
let result = [a, b]->Array.reduce(0, (acc, opt) => acc + opt->Option.getOr(0))
Another alternative using Array:
let a = Some(3)
let b = Some(5)
let result = [a, b]->Array.reduce(0, (acc, opt) => acc + opt->Option.getOr(0))