diff options
| author | rcmlz <rcmlz@github.com> | 2023-10-24 15:17:00 +0200 |
|---|---|---|
| committer | rcmlz <rcmlz@github.com> | 2023-10-24 15:17:00 +0200 |
| commit | d16cd656e52d4bf4284ed5c7b2f9eb722e462e2f (patch) | |
| tree | a8109ae38e1670013cb084cf6840738378312a6b | |
| parent | 1a61ceebd7fcdf4d5006a621f9092cc91d854611 (diff) | |
| download | perlweeklychallenge-club-d16cd656e52d4bf4284ed5c7b2f9eb722e462e2f.tar.gz perlweeklychallenge-club-d16cd656e52d4bf4284ed5c7b2f9eb722e462e2f.tar.bz2 perlweeklychallenge-club-d16cd656e52d4bf4284ed5c7b2f9eb722e462e2f.zip | |
adding types to task one - wondering if that makes it run faster
| -rw-r--r-- | challenge-240/rcmlz/raku/task-one.rakumod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-240/rcmlz/raku/task-one.rakumod b/challenge-240/rcmlz/raku/task-one.rakumod index fd3e8e5645..53b9658355 100644 --- a/challenge-240/rcmlz/raku/task-one.rakumod +++ b/challenge-240/rcmlz/raku/task-one.rakumod @@ -8,6 +8,6 @@ You are given an array of strings and a check string. - Write a script to find out if the check string is the acronym of the words in the given array. ] -our sub solution([$acr, *@str]) is export { - $acr.lc eq @str.map( *.substr(0,1) ).join.lc; +our sub solution((Str $acr, List:D[Str:D] $str) --> Bool) is export { + $acr.lc eq $str.map( *.substr(0,1) ).join.lc; }
\ No newline at end of file |
