Created
April 20, 2019 04:08
-
-
Save rust-play/a8796d556b5b40a3a11a361b51b97c4a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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 foo(iter: impl Iterator) -> impl Iterator { | |
if 0 == 0 { | |
iter.map(|x| x) | |
} else { | |
iter.filter(|x| true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment