SplitBy¶ Splits list at boundaries where a function changes value. $ wo 'SplitBy[{1, 2, 3, 4, 5}, EvenQ]' {{1}, {2}, {3}, {4}, {5}}