using static LanguageExt.Prelude;
public static void Main()
LinqPatternMatchingExample();
public static Unit LinqPatternMatchingExample()
Option<int> two = Some(2);
Option<int> four = Some(4);
Option<int> six = Some(6);
int r1 = match( from x in two
int r2 = match( from x in two
Console.WriteLine($"{r1} - {r2}");
public static Unit OptionExample()
var optional = Some(123);
int x2 = match( optional,