Skip to content

Instantly share code, notes, and snippets.

@andybrackley
Created March 11, 2014 20:50
Show Gist options
  • Save andybrackley/9494748 to your computer and use it in GitHub Desktop.
Save andybrackley/9494748 to your computer and use it in GitHub Desktop.
type IInterface =
abstract theFunc : unit -> string
let init =
{ new IInterface with
member x.theFunc() = "Impl"
}
printfn "%s" <| init.theFunc()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment