Function tract_hir::internal::tract_itertools::sorted [−][src]
pub fn sorted<I>(iterable: I) -> IntoIter<<I as IntoIterator>::Item, Global>ⓘ where
I: IntoIterator,
<I as IntoIterator>::Item: Ord,
Expand description
Sort all iterator elements into a new iterator in ascending order.
IntoIterator
enabled version of Itertools::sorted
.
use itertools::sorted;
use itertools::assert_equal;
assert_equal(sorted("rust".chars()), "rstu".chars());