static ItIt allUpDownSequencesOfLength(int length) { ret mapI(allWordsOfAlphabetWithLength(length, "UD"), s -> UpDownSequence(s)); }