Split a list at every element satisfying a predicate, and then prepend acc.reverse to the
first element of the result.
[1, 1, 2, 3, 2, 4, 4].splitOnPPrepend (· == 2) [0, 5] = [[5, 0, 1, 1], [3], [4, 4]]
Split a list at every element satisfying a predicate, and then prepend acc.reverse to the
first element of the result.
[1, 1, 2, 3, 2, 4, 4].splitOnPPrepend (· == 2) [0, 5] = [[5, 0, 1, 1], [3], [4, 4]]