Skip to content

Instantly share code, notes, and snippets.

@chamook
Created January 20, 2016 20:50
Show Gist options
  • Select an option

  • Save chamook/aa1ff89dc46528d54f5e to your computer and use it in GitHub Desktop.

Select an option

Save chamook/aa1ff89dc46528d54f5e to your computer and use it in GitHub Desktop.
A class defined in F# can expect an FSharpFunc as a dependency
type SomeClassWithADependency (funcThing : string -> string) =
member x.DoThing(s) = funcThing s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment