Skip to content

Instantly share code, notes, and snippets.

@Blei
Created October 9, 2012 08:29
Show Gist options
  • Save Blei/3857354 to your computer and use it in GitHub Desktop.
Save Blei/3857354 to your computer and use it in GitHub Desktop.
pub fn at_vec_remove(v: @[int], remove: int) -> @[int] {
do at_vec::build |f| {
for v.each() |e| {
if (*e != remove) {
f(*e);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment