Created
March 15, 2012 02:51
-
-
Save db48x/2041476 to your computer and use it in GitHub Desktop.
this doesn't work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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