Search code examples
c#f#linqpad

In LINQPad , what is the equivalent of C#'s .Dump() method in F#?


In LINQPad , what is the equivalent of C#'s .Dump() method in F#?

For example, what is the quickest way to dump the below C# in F# syntax?

var nums = new List<int> { 1, 2, 3, 4, 5 };
nums.Dump();

And

let nums = [1; 2; 3; 4; 5]

Solution

  • This works for me:

    let nums = [1; 2; 3; 4; 5]
    nums.Dump()