Skip to content

Commit

Permalink
doc List.rotor
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Feb 27, 2015
1 parent ab16f15 commit a2f4cf4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions S32-setting-library/Containers.pod
Expand Up @@ -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 ( )
Expand Down

0 comments on commit a2f4cf4

Please sign in to comment.