Documentation for 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 (|)

only sub infix:<(|)>(**@p)

Union operator.

Returns the union of all its arguments. Generally, this creates a new Set that contains all the elements its arguments contain.

<a a b c d> (|) <h g f e d c> (|) <i j> === set <a b c d e f g h i j>

If any of its arguments are Baggy, it creates a new Bag that contains all the elements of the arguments, each weighed by the highest weight that appeared for that element.

bag(<a a b c a>(|) bag(<a a b c c>=== bag(<a a a b c c>)

infix ∪

only sub infix:<>(|p)

Union operator (alternate).

Equivalent to (|), at codepoint U+222A (UNION).