Function malachite_base::chars::exhaustive::exhaustive_chars

source ·
pub const fn exhaustive_chars() -> ExhaustiveChars 
Expand description

Generates all chars, in a friendly order, so that more familiar chars come first.

The order is

  • Lowercase ASCII letters,
  • Uppercase ASCII letters,
  • ASCII digits,
  • Graphic ASCII char (not alphanumeric and not control), including ' ' but no other whitespace,
  • Graphic Non-ASCII chars; all non-ASCII chars whose Debug representations don’t start with '\',
  • All remaining chars.

Within each group, the chars are ordered according to their usual order.

If you want to generate chars in their usual order, try chars_increasing.

The output length is 1,112,064.

§Complexity per iteration

Constant time and additional memory.


use malachite_base::chars::exhaustive::exhaustive_chars;

    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !\"#$%&\'()*+,-./:;<=>?@[\\\