Skip to content

Instantly share code, notes, and snippets.

@leppie
Created April 11, 2013 09:57
Show Gist options
  • Save leppie/5362154 to your computer and use it in GitHub Desktop.
Save leppie/5362154 to your computer and use it in GitHub Desktop.
List<T> in terms of Cons<Car,Cdr>
class Cons<Car, Cdr>
{
public Car Car { get; set; }
public Cdr Cdr { get; set; }
}
class List<T> : Cons<T, List<T>>
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment