diff options
| -rw-r--r-- | challenge-279/mark-anderson/raku/ch-2.raku | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-279/mark-anderson/raku/ch-2.raku b/challenge-279/mark-anderson/raku/ch-2.raku index 1251f5a5d3..c674e58a6d 100644 --- a/challenge-279/mark-anderson/raku/ch-2.raku +++ b/challenge-279/mark-anderson/raku/ch-2.raku @@ -15,7 +15,7 @@ sub split-string($str is copy) for $str.words.grep({ .contains('y') }) -> $word { - if $word.comb.contains(none(<a e i o u>)) + if $word.contains(none(<a e i o u>)) { $count += ($word ~~ m:g/y/).elems; next @@ -33,7 +33,7 @@ sub split-string($str is copy) for @syllables { next unless .contains('y'); - $count += (.comb.indices('y').grep(* > 0)).elems + $count += (.indices('y').grep(* > 0)).elems } } |
