aboutsummaryrefslogtreecommitdiff
path: root/challenge-145
diff options
context:
space:
mode:
authorMark <53903062+andemark@users.noreply.github.com>2021-12-27 09:03:33 +0000
committerMark <53903062+andemark@users.noreply.github.com>2021-12-27 09:03:33 +0000
commitab67f618217d8ec9f74705c39bb256cc6067ff1b (patch)
treedbcdc0ffe83d0742241e8238022a49347c7e112f /challenge-145
parent183bcbc5bbfded87efa3c8180a5c204bc404e370 (diff)
downloadperlweeklychallenge-club-ab67f618217d8ec9f74705c39bb256cc6067ff1b.tar.gz
perlweeklychallenge-club-ab67f618217d8ec9f74705c39bb256cc6067ff1b.tar.bz2
perlweeklychallenge-club-ab67f618217d8ec9f74705c39bb256cc6067ff1b.zip
ch-1.raku
Diffstat (limited to 'challenge-145')
-rw-r--r--challenge-145/mark-anderson/raku/ch-1.raku3
1 files changed, 2 insertions, 1 deletions
diff --git a/challenge-145/mark-anderson/raku/ch-1.raku b/challenge-145/mark-anderson/raku/ch-1.raku
index 005dfd13a4..6f0c05cd55 100644
--- a/challenge-145/mark-anderson/raku/ch-1.raku
+++ b/challenge-145/mark-anderson/raku/ch-1.raku
@@ -3,9 +3,10 @@
use Test;
is dot-product((1, 2, 3), (4, 5, 6)), 32;
+is dot-product((1, 2, 3, 4), (4, 5, 6, 7), (7, 8, 9, 1)), 298;
is dot-product((1, 2, 3, 4), (4, 5, 6, 7), (7, 8, 9, 1), (2, 3, 4, 5)), 1084;
sub dot-product(+@a)
{
- sum [<<*>>] @a;
+ sum [>>*<<] @a;
}