diff --git a/S32-setting-library/Containers.pod b/S32-setting-library/Containers.pod index 6edcb21c2..c7e79a553 100644 --- a/S32-setting-library/Containers.pod +++ b/S32-setting-library/Containers.pod @@ -681,6 +681,16 @@ are converted to a list of individual values before permuting them.) The functional form assumes it is working on a list of integers C<^$n>. +=item rotor + + multi method rotor ( $elems = 2, $overlap = 1 ) + +Returns a new list of sublists formed by returning a sublist of C<$elems> +elements, backing up by C<$overlap> elements, then repeating. Stops as +soon as there are no longer enough remaining elements to form a sublist +that is C<$elems> long. (From which it follows that an infinite list +can be rotorized forever.) + =item pairup multi method pairup ( )