infix (elem)

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

language documentation Sets, Bags, and Mixes

From Sets, Bags, and Mixes

(Sets, Bags, and Mixes) infix (elem)

multi sub infix:<(elem)>($aAny $b --> Bool)
multi sub infix:<(elem)>($aSet $b --> Bool)

Membership operator.

Returns True if $a is an element of $b.

say 2 (elem) (123).Set;              # OUTPUT: «True␤» 
say 4 (elem) (123).Set;              # OUTPUT: «False␤»