RosettaCodeData/Task/Matrix-multiplication/Perl-6/matrix-multiplication-2.pl6

12 lines
189 B
Raku
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
sub mmult(\a,\b) {
[
for ^a -> \r {
[
for ^b[0] -> \c {
[+] a[r;^b] Z* b[^b;c]
}
]
2013-04-10 22:43:41 -07:00
}
2015-11-18 06:14:39 +00:00
]
2013-04-10 22:43:41 -07:00
}