4 ms·
Fwiw, the Haskell: [ x*y | x <- [2,4..8], y <- [-1,0,1] ] -- [-2,0,2,-4,0,4,-6, 0,6,-8,0,8] could be translated to the Perl 6: [2,4...8] X* [-1,0,1]
by raiph 11y ago
Fwiw, the Haskell:
[ x*y | x <- [2,4..8], y <- [-1,0,1] ]
-- [-2,0,2,-4,0,4,-6, 0,6,-8,0,8]
could be translated to the Perl 6:
[2,4...8] X* [-1,0,1]
# (-2 0 2 -4 0 4 -6 0 6 -8 0 8)