Skip to content

Commit

Permalink
Missing 'c' from rotor example
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisShannon committed Apr 25, 2015
1 parent d251a6b commit 7749b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S32-setting-library/Containers.pod
Expand Up @@ -699,8 +699,8 @@ if it is not empty. Here we slice the alphabet into alternating slices
of size 2 and 3:

my @list = 'a'...'z';
@list.rotor(2,3) # ab, def, gh, ijk...uv, wxy
@list.rotor(2,3, :partial) # ab, def, gh, ijk...uv, wxy, z
@list.rotor(2,3) # ab, cde, fg, hij...uv, wxy
@list.rotor(2,3, :partial) # ab, cde, fg, hij...uv, wxy, z

It is allowed to specify an infinite cycle, in which case it will never
repeat, at least not internally. The supplied list may of course repeat
Expand Down

0 comments on commit 7749b59

Please sign in to comment.