Skip to content

Instantly share code, notes, and snippets.

@MelbourneDeveloper
Created October 17, 2020 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MelbourneDeveloper/551d22ea67b0bba9aca8070700df64e3 to your computer and use it in GitHub Desktop.
Save MelbourneDeveloper/551d22ea67b0bba9aca8070700df64e3 to your computer and use it in GitHub Desktop.
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