Function exhaustive_units
Source pub fn exhaustive_units() -> Once<()>
Expand description
Generates the only unit: ()
.
The output length is 1.
§Worst-case complexity per iteration
Constant time and additional memory.
§Examples
use itertools::Itertools;
use malachite_base::tuples::exhaustive::exhaustive_units;
assert_eq!(exhaustive_units().collect_vec(), &[()]);