pub fn exhaustive_orderings() -> Copied<Iter<'static, Ordering>> 
Expand description

Generates all Orderings, with Equal coming first.

The output length is 3.

§Worst-case complexity per iteration

Constant time and additional memory.

§Examples

use itertools::Itertools;
use malachite_base::orderings::exhaustive::exhaustive_orderings;
use std::cmp::Ordering::*;

assert_eq!(
    exhaustive_orderings().collect_vec(),
    &[Equal, Less, Greater]
);