Skip to content

Commit 3da8055

Browse files
committed
Make debuging code selectable with a flag
1 parent acc163b commit 3da8055

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

categories/euler/prob463-shlomif.p6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ see: L<https://www.youtube.com/watch?v=kYX8sjIzjGw>.
3030
3131
=end pod
3232

33+
my $debug = False;
34+
3335
class Poly
3436
{
3537
has $.mult;
@@ -134,7 +136,7 @@ sub lookup($mult)
134136
return @($ret).map({ .mult });
135137
}
136138

137-
if False
139+
if $debug
138140
{
139141
my $mult = 4;
140142
while (1)
@@ -246,7 +248,7 @@ sub s_smart($start, $end)
246248
);
247249
}
248250

249-
if False
251+
if $debug
250252
{
251253
my $want = 0;
252254
for 1 .. 100_000 -> $n

0 commit comments

Comments
 (0)