Skip to content

Instantly share code, notes, and snippets.

@catamorphism
Created September 1, 2012 00:44
Show Gist options
  • Select an option

  • Save catamorphism/3561980 to your computer and use it in GitHub Desktop.

Select an option

Save catamorphism/3561980 to your computer and use it in GitHub Desktop.
import iter;
import iter::base_iter;
impl Q<A> for base_iter<A> {
fn flat_map_to_vec<B:copy, IB:base_iter<B>>(op: fn(B) -> IB) -> [B] {
iter::flat_map_to_vec(self, op)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment