Skip to content

Instantly share code, notes, and snippets.

View En3Tho's full-sized avatar

Igor Bagdamyan En3Tho

  • 10:57 (UTC +03:00)
View GitHub Profile
type IOptionalParameter =
abstract member Do: count: int * [<Optional; DefaultParameterValue 10>] length : int -> unit
type OptionalParameter() =
member _.Do(count, [<Optional; DefaultParameterValue 10>]length) = printf "%i" (count + length)
interface IOptionalParameter with
member this.Do(count, length) =
this.Do(count, length)
let op1 = OptionalParameter().Do 12