Skip to content

Instantly share code, notes, and snippets.

@krishnabhargav
Created May 20, 2015 02:06
Show Gist options
  • Save krishnabhargav/e16aa0e17af478fffede to your computer and use it in GitHub Desktop.
Save krishnabhargav/e16aa0e17af478fffede to your computer and use it in GitHub Desktop.
F# Method Constraints .. multiple ones
let inline recordMetrics< ^T when ^T : (member MessageCountDetails : MessageCountDetails)
and ^T : (member Path : string)> (all : ^T seq) =
recordMetricsForPath (fun e -> (((^T : (member Path : string) e)))) all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment