aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Proctor <simon.proctor@zoopla.co.uk>2020-07-27 10:26:02 +0100
committerSimon Proctor <simon.proctor@zoopla.co.uk>2020-07-27 10:26:02 +0100
commit0a597f43233d888b36666d5b1c94960eaf62a9f1 (patch)
tree431cab7dacea49e0e9c426b32ab03da29650b35b
parent81ee5e376bb770ba1c77d91650f14a11fe8b6933 (diff)
downloadperlweeklychallenge-club-0a597f43233d888b36666d5b1c94960eaf62a9f1.tar.gz
perlweeklychallenge-club-0a597f43233d888b36666d5b1c94960eaf62a9f1.tar.bz2
perlweeklychallenge-club-0a597f43233d888b36666d5b1c94960eaf62a9f1.zip
Check N is greated than 0
-rw-r--r--challenge-071/simon-proctor/raku/ch-2.raku2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-071/simon-proctor/raku/ch-2.raku b/challenge-071/simon-proctor/raku/ch-2.raku
index ddb1154499..6ce64bb2d5 100644
--- a/challenge-071/simon-proctor/raku/ch-2.raku
+++ b/challenge-071/simon-proctor/raku/ch-2.raku
@@ -75,7 +75,7 @@ class ListNode {
}
sub MAIN (
- UInt $N, #= Number from the end to remove if N is greated than list length remove the first item
+ UInt $N where * > 0, #= Number from the end to remove if N is greated than list length remove the first item
*@list, #= List of values
) {
my $linked = ListNode.from-iterator(@list);