Created
October 17, 2020 04:30
-
-
Save MelbourneDeveloper/551d22ea67b0bba9aca8070700df64e3 to your computer and use it in GitHub Desktop.
F# Lists
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
using Microsoft.FSharp.Collections; | |
using System; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var numbers = FSharpList<int>.Cons( | |
1, | |
FSharpList<int>.Cons(2, | |
FSharpList<int>.Cons( | |
3, | |
FSharpList<int>.Empty))); | |
Console.WriteLine(string.Join(", ", numbers)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment