infix (.)

Documentation for infix (.) assembled from the following types:

language documentation Sets, bags, and mixes

From Sets, bags, and mixes

(Sets, bags, and mixes) infix (.)

multi sub infix:<(.)>(**@p)

Baggy multiplication operator. It is of precedence "Junctive and".

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.

<a b c> (.) <a b c d> === bag <a b c> # Since 1 * 0 == 0, in the case of 'd' 
bag(<a a b c a d>(.) bag(<a a b c c>=== ("a"=>6,"c"=>2,"b"=>1).Bag