Is it possible to forward optional parameters e.g:
type Type() =
member this.A(?param) = printfn "%d" <| defaultArg param 0
member this.B(?param) = this.A(param) // how to do this ?
Like this:
member this.B(?param) = this.A(?param = param)
Using ?
when providing a named optional parameter allows you to pass an option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With