Created
September 1, 2012 00:44
-
-
Save catamorphism/3561980 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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