All pastes #980522 Raw Edit

Something

public text v1 · immutable
·published 2008-04-11 01:55 UTC
rendered paste body
using System;
using Parser;

...
	static void Main()
	{
	    Parsed<int> x = new Ok<int>(4);

	    // Is there any way to avoid having to write "Parsed<int>.Fn<int>"?

	    Console.WriteLine(x.Match(new Parsed<int>.Fn<int> {
		Ok = z => z.Value,
		Error = z => 9
	    }));

	}