Practice question from FSharp Programming Advanced

Complete the F# computation expression for optional values:

let divide a b = 
    maybe {
        let! x = a
        let! y = b
        return! ____ x y
    }

Answer

Some

Explanation

The Some constructor is used to wrap successful computations in optional (option) types within computation expressions.

More questions from Quick: FSharp Programming Advanced