Skip to content

Commit 7817733

Browse files
committed
more GLR fixes
1 parent 5b8bc61 commit 7817733

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

categories/99-problems/P07-viklund.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ (@t)
4545

4646
sub splat (@t) { gather _splat(@t) }
4747

48-
splat([1, [2,[3,4], 5]]).perl.say;
48+
splat([1, [2,[3,4], 5]]).list.perl.say;
4949

5050
# vim: expandtab shiftwidth=4 ft=perl6

categories/99-problems/P13-rhebus.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ (@a)
3838
my @l = <a a a a b c c a a d e e e e>;
3939

4040
say ~@l;
41-
runlength(@l).perl.say;
41+
runlength(@l).list.perl.say;
4242

4343
# vim: expandtab shiftwidth=4 ft=perl6

categories/99-problems/P21-topo.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ =head1 Example
2020
@list
2121
}
2222

23-
say insert-at('alfa', <a b c d>, 2);
23+
say "{insert-at('alfa', <a b c d>, 2)}";
2424

2525
# vim: expandtab shiftwidth=4 ft=perl6

categories/best-of-rosettacode/prime-decomposition.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ (Int $remainder is copy)
4646
}
4747
}
4848

49-
say factors 536870911;
49+
say "{factors 536870911}";
5050

5151
# vim: expandtab shiftwidth=4 ft=perl6

categories/euler/prob018-felher.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
# reduce the triangle by adding up the lines until only one line with one
6868
# element is left; then print it.
69-
say @lines.reduce: &add-maxima;
69+
say "{@lines.reduce: &add-maxima}";
7070

7171
# this function assumes the shorter and longer array to be consecutive lines
7272
# in an reversed triangle. It then adds each of the maxima of consecutive fields

categories/euler/prob067-felher.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# reduce the triangle by adding up the lines until only one line with one
3838
# element is left; then print it.
39-
say @lines.reduce: &add-maxima;
39+
say "{@lines.reduce: &add-maxima}";
4040

4141
# this function assumes the shorter and longer array to be consecutive lines
4242
# in an reversed triangle. It then adds each of the maxima of consecutive fields

categories/rosalind/dna-gerdr.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
my $default-input = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";
2222

2323
sub MAIN($input = $default-input) {
24-
<A C G T>.map({ +$input.comb(/$_/) }).say;
24+
"{<A C G T>.map({ +$input.comb(/$_/) })}".say;
2525
}
2626

2727
# vim: expandtab shiftwidth=4 ft=perl6

categories/rosalind/dna-grondilu.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
my $default-input = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";
2222

2323
sub MAIN(Str $input = $default-input) {
24-
say bag($input.comb)<A C G T>;
24+
say "{bag($input.comb)<A C G T>}";
2525
}
2626

2727
# vim: expandtab shiftwidth=4 ft=perl6

categories/rosalind/prob-grondilu.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ($input-file = Nil)
2727
my @A = $gc-content-string.split(" ");
2828
my @B = map { log(prob :$dna, :gc-content($_))/log(10) }, @A;
2929

30-
say @B».fmt: "%.3f";
30+
say "{@B».fmt: "%.3f"}";
3131
}
3232

3333
sub prob(:$dna, :$gc-content) {

categories/rosalind/sexl-grondilu.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
=end pod
2020

2121
sub MAIN(Str $input = "0.1 0.5 0.8") {
22-
say map { 2*$^x*(1-$x) }, $input.split(' '.Num;
22+
say "{map { 2*$^x*(1-$x) }, $input.split(' '.Num}";
2323
}
2424

2525
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)