infix (<=)
Documentation for infix (<=)
assembled from the following types:
language documentation Sets, bags, and mixes
(Sets, bags, and mixes) infix (<=)
multi sub infix:<<(<=)>>(Any , Any --> Bool)multi sub infix:<<(<=)>>(Setty , Setty --> Bool)
Subset of or equal to operator.
Returns True
if $a
is a subset or is equal to $b
, i.e., if all the elements of $a
are elements of $b
and $a
is a smaller or equal sized set than $b
.
say (1, 2, 3).Set (<=) (3, 2, 1).Set; # OUTPUT: «True»say (1, 3).Set (<=) (2, 1).Set; # OUTPUT: «False»say ∅ (<=) (3, 2, 1).Set; # OUTPUT: «True»