static ItIt allUpDownSequencesOfMaxLength(int maxLength) { ret mapI(allWordsOfAlphabet_maxLength(maxLength, "UD"), s -> UpDownSequence(s)); }