diff options
| -rwxr-xr-x | challenge-330/simon-proctor/raku/ch-1.raku | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/challenge-330/simon-proctor/raku/ch-1.raku b/challenge-330/simon-proctor/raku/ch-1.raku index 5c3c027128..f37cecd14d 100755 --- a/challenge-330/simon-proctor/raku/ch-1.raku +++ b/challenge-330/simon-proctor/raku/ch-1.raku @@ -13,8 +13,7 @@ multi sub MAIN(:t(:$test)) is hidden-from-USAGE { } sub clear-digits(ValidInput $str is copy) { - $str = loop-strip( $str, / \D?\d / ); - return $str; + loop-strip( $str, / \D?\d / ); } sub loop-strip( $str is copy, $regex ) { |
