infix (.), infix ⊍
1 | language documentation Sets, bags, and mixes |
1.1 | (Sets, bags, and mixes) infix (.), infix ⊍ |
2 | language documentation Operators |
2.1 | (Operators) infix (.), infix ⊍ |
Documentation for infix (.), infix ⊍
assembled from the following types:
language documentation Sets, bags, and mixes
(Sets, bags, and mixes) infix (.), infix ⊍
Returns the Baggy multiplication of its arguments. More information.
language documentation Operators
From Operators
(Operators) infix (.), infix ⊍
multi sub infix:<(.)>(**)multi sub infix:<⊍>(**)
Baggy multiplication operator.
Returns the Baggy multiplication of its arguments, i.e., a Bag that contains each element of the arguments with the weights of the element across the arguments multiplied together to get the new weight. Returns a Mix if any of the arguments is a Mixy.
say <a b c> (.) <a b c d>; # OUTPUT: «Bag(a, b, c)»# Since 1 * 0 == 0, in the case of 'd'say <a a b c a d> ⊍ bag(<a a b c c>); # OUTPUT: «Bag(a(6), b, c(2))»
⊍
is equivalent to (.)
, at codepoint U+228D (MULTISET MULTIPLICATION).