Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -2,7 +2,7 @@ sub encode ( Str $word ) {
|
|||
my @sym = 'a' .. 'z';
|
||||
gather for $word.comb -> $c {
|
||||
die "Symbol '$c' not found in @sym" if $c eq @sym.none;
|
||||
@sym[0 .. take (Nil, @sym ... $c).end] .= rotate(-1);
|
||||
@sym[0 .. take (@sym ... $c).end] .= rotate(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue