Last active
November 19, 2015 21:22
-
-
Save jogleasonjr/75a84c7a09097260571a to your computer and use it in GitHub Desktop.
LinqPad's .Dump(string) as an F# function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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