Skip to content

Instantly share code, notes, and snippets.

@eholk
Created September 14, 2011 18:12
Show Gist options
  • Select an option

  • Save eholk/1217298 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/1217298 to your computer and use it in GitHub Desktop.
tag tree_node<@K, @V> { empty; node(@K, @V, treemap<K, V>, treemap<K, V>); }
fn foo<@K, @V>(m : @mutable tree_node<K,V>) {
alt *m {
empty. { none }
node(@kk, @v, _, _) {
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment