Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created March 14, 2012 21:01
Show Gist options
  • Save nikomatsakis/2039487 to your computer and use it in GitHub Desktop.
Save nikomatsakis/2039487 to your computer and use it in GitHub Desktop.
fn tail<A,IA:iterable<A>>(
iter: IA, op: fn(A)) {
let first = true;
iter.iter {|e|
if !first {
op(e);
}
first = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment