Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
F# Lists
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