Skip to content

Instantly share code, notes, and snippets.

@jogleasonjr
Last active November 19, 2015 21:22
Show Gist options
  • Save jogleasonjr/75a84c7a09097260571a to your computer and use it in GitHub Desktop.
Save jogleasonjr/75a84c7a09097260571a to your computer and use it in GitHub Desktop.
LinqPad's .Dump(string) as an F# function
<Query Kind="FSharpProgram" />
let dump (title : string) x = x.Dump(title)
let add x y = x + y
dump "add results" (add 6 4)
[1, 2, 3, 4]
|> dump "array contents"
let dump (title : string) x = x.Dump(title)
let add x y = x + y
dump "add results" (add 6 4)
[1, 2, 3, 4]
|> dump "array contents"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment