Skip to content

Instantly share code, notes, and snippets.

@showstopper
Created August 12, 2010 13:03
Show Gist options
  • Save showstopper/520926 to your computer and use it in GitHub Desktop.
Save showstopper/520926 to your computer and use it in GitHub Desktop.
import structs/HashMap
main: func {
a := HashMap<String, String> new()
a["a"] = "b"
a each(| val |
val println()
)
}
A: class <V> {
init: func {}
}
B: class<K,V> extends A<V> {
init: func {}
each: func (f: Func (V)) {}
}
B<String, Int> new() each(|b| return)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment