Created
August 24, 2011 19:38
-
-
Save od0x0/1168985 to your computer and use it in GitHub Desktop.
This file contains 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
Containable: interface { | |
getRawValue: func<T> -> T//Not really used... | |
} | |
Cell: class<T> implements Containable { | |
value: T | |
init: func(=value) {} | |
} | |
ArrayOfAnything: class extends ArrayList<Containable> { | |
add: func<T> (element: T) { | |
super(Cell<T> new(element)) | |
} | |
//blah blah... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment