Skip to content

Instantly share code, notes, and snippets.

@od0x0
Created August 24, 2011 19:38
Show Gist options
  • Save od0x0/1168985 to your computer and use it in GitHub Desktop.
Save od0x0/1168985 to your computer and use it in GitHub Desktop.
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