aboutsummaryrefslogtreecommitdiff
path: root/challenge-260
diff options
context:
space:
mode:
authorMatthew Neleigh <matthew.neleigh@gmail.com>2024-03-14 21:40:49 -0400
committerMatthew Neleigh <matthew.neleigh@gmail.com>2024-03-14 21:40:49 -0400
commit635643fd9017a45105417818d2d9ed45f7cbd608 (patch)
treeb2cf7ddce17b03e354118b48daffec5b679ab5b6 /challenge-260
parentf785b530ebec313f3660400e95da5771d600a7aa (diff)
downloadperlweeklychallenge-club-635643fd9017a45105417818d2d9ed45f7cbd608.tar.gz
perlweeklychallenge-club-635643fd9017a45105417818d2d9ed45f7cbd608.tar.bz2
perlweeklychallenge-club-635643fd9017a45105417818d2d9ed45f7cbd608.zip
modified: challenge-260/mattneleigh/perl/ch-2.pl
Diffstat (limited to 'challenge-260')
-rwxr-xr-xchallenge-260/mattneleigh/perl/ch-2.pl10
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