diff options
| author | Mohammad Sajid Anwar <Mohammad.Anwar@yahoo.com> | 2024-03-15 12:05:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-15 12:05:24 +0000 |
| commit | 24a438ed2f1dbbb8af04c6d4179a83411df583f5 (patch) | |
| tree | a5e21e81cce4cdeed052a4a316e99434776a6069 /challenge-260 | |
| parent | d49ea1c20d28c64d5abfb39e8b1ec2d64ea6f4ab (diff) | |
| parent | 635643fd9017a45105417818d2d9ed45f7cbd608 (diff) | |
| download | perlweeklychallenge-club-24a438ed2f1dbbb8af04c6d4179a83411df583f5.tar.gz perlweeklychallenge-club-24a438ed2f1dbbb8af04c6d4179a83411df583f5.tar.bz2 perlweeklychallenge-club-24a438ed2f1dbbb8af04c6d4179a83411df583f5.zip | |
Merge pull request #9744 from mattneleigh/pwc260
modified: challenge-260/mattneleigh/perl/ch-2.pl
Diffstat (limited to 'challenge-260')
| -rwxr-xr-x | challenge-260/mattneleigh/perl/ch-2.pl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/challenge-260/mattneleigh/perl/ch-2.pl b/challenge-260/mattneleigh/perl/ch-2.pl index 66e9af673c..9f2bff975d 100755 --- a/challenge-260/mattneleigh/perl/ch-2.pl +++ b/challenge-260/mattneleigh/perl/ch-2.pl @@ -127,8 +127,8 @@ sub determine_dictionary_rank{ # recommended that this argument be shift()ed out of @_ (or @ARG) so the # array contains only the permutation to be processed # * A list containing the current permutation of the supplied list -# NOTE: This list is passed as an array slice from an array used internally -# by permutations_iterative_lexicographical(); any changes made to these list +# NOTE: This list is passed as an array used internally by +# permutations_iterative_lexicographical(); any changes made to these list # values will be reflected in subsequent permutations and should be avoided # (see 'man perlsub' for more information on argument aliasing) # Return values expected from the callback subroutine: @@ -187,10 +187,8 @@ sub permutations_iterative_lexicographical{ $largest_k = undef; # Call the supplied subroutine on the data - # arg and a slice of the list of things to - # permute, with indices calculated from the - # current value of $i, thus determining the - # current permutation + # arg and the list of things representing + # the current permutation $rval = &{$callback}( $data_arg, @items |
