pub fn rev<I>(iterable: I) -> Rev<I::IntoIter>
Expand description
Iterate iterable
in reverse.
IntoIterator
enabled version of Iterator::rev
.
use itertools::rev;
for elt in rev(&[1, 2, 3]) {
/* loop body */
}
pub fn rev<I>(iterable: I) -> Rev<I::IntoIter>
Iterate iterable
in reverse.
IntoIterator
enabled version of Iterator::rev
.
use itertools::rev;
for elt in rev(&[1, 2, 3]) {
/* loop body */
}