Hello,
I hope also suggestions are welcome here. I have a suggestion for an expanded version of group-list. I’ve been able to implement this via patches, but in seems to be highly inefficient as I personally need it for a test function. Maybe others would find it useful, too.
Here is what my patch does:
-Groups lists normally, eg. (1 2 3 4 5 6) (1 2 3) → ((1) (2 3) (4 5 6))
-Allows repetitions in grouping, signified here by a minus sign: eg. (1 2 3 4 5 6) (1 2 -3)-> ((1)(2 3)(3 4 5))
-In the case the first number is negative, the repeated element is taken from behind the list:
(1 2 3 4 5 6) (-1 2 -3) → ((6) (1 2) (2 3 4)).
Would someone here be able to implement a version that would be faster?
Thanks!