Simplifying Option Handling in Effect Pipeline
I have this code right now:
Is there a cleaner way to parse the existing values other than doing
getCalibrationValue returns an array of Options which could have numeric values which need to be summed together:Is there a cleaner way to parse the existing values other than doing
Effect.map((arr) => arr.flatMap(Option.getOrElse(() => 0)))?