In Sets, bags, and mixes§
See primary documentation in context for infix (cont), infix ∋
Returns True
if $a
contains $b
as an element, else False
. More information, Wikipedia definition.
In Operators§
See primary documentation in context for infix (cont), infix ∋
multi infix:<(cont)>(, --> Bool)
Returns True
if $a
contains $b
as an element.
say (1,2,3) (cont) 2; # OUTPUT: «True»say (1, 2, 3) ∋ 4; # OUTPUT: «False»
Since release 2020.05, ∍ is an alias for this operator.