Created
April 11, 2013 09:57
-
-
Save leppie/5362154 to your computer and use it in GitHub Desktop.
List<T> in terms of Cons<Car,Cdr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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