Navigation Menu

Skip to content

Commit

Permalink
GLRish fixes for 99-problems
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Aug 5, 2017
1 parent 82eeb30 commit 0912154
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion categories/99-problems/P05-scottp.pl
Expand Up @@ -22,6 +22,6 @@
# b. Perl representation
# .perl serialises the data as perl representation (like Data::Dumper in perl5)
# .say to display the result (print with a new line)
<A B C D>.list.reverse.perl.say;
<A B C D>.reverse.list.perl.say;

# vim: expandtab shiftwidth=4 ft=perl6
2 changes: 1 addition & 1 deletion categories/99-problems/P06-ajs.pl
Expand Up @@ -15,7 +15,7 @@ (@list)
my $end = @list.end;
my $mid_start = floor(@list / 2 - 1);
my $mid_end = ceiling(@list / 2);
@list[$start .. $mid_start] ~~ @list[$mid_end .. $end].reverse;
@list[$start .. $mid_start] ~~ @list[$mid_end .. $end].reverse.list;
}

my @examples = [
Expand Down
2 changes: 1 addition & 1 deletion categories/99-problems/P06-topo.pl
Expand Up @@ -17,7 +17,7 @@ =head1 Example

sub palindromic(@list)
{
@list ~~ @list.reverse;
@list ~~ @list.reverse.list;
}

say palindromic(<a b c d e>);
Expand Down

0 comments on commit 0912154

Please sign in to comment.