Function malachite_base::orderings::exhaustive::orderings_increasing
source · pub fn orderings_increasing() -> ExhaustiveOrderings
Expand description
Generates all Ordering
s, in increasing order.
The output length is 3.
§Worst-case complexity per iteration
Constant time and additional memory.
§Examples
use itertools::Itertools;
use malachite_base::orderings::exhaustive::orderings_increasing;
use std::cmp::Ordering::*;
assert_eq!(
orderings_increasing().collect_vec(),
&[Less, Equal, Greater]
);