Skip to content

Instantly share code, notes, and snippets.

@db48x
Created March 15, 2012 02:51
Show Gist options
  • Save db48x/2041476 to your computer and use it in GitHub Desktop.
Save db48x/2041476 to your computer and use it in GitHub Desktop.
this doesn't work
fn tail<A:copy, IA:iterable<A>>(self:IA) -> fn@(fn(A)) {
ret fn@(blk:fn(A)) {
let mut first:bool = true;
self.iter {|a|
if (!first) {
blk(a);
} else {
first = false;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment