Note: information on this page refers to Ceylon 1.0, not to the current release.
&=
(intersect assign) operator
The rightassociative, binary infix &=
operator is used to compute the
intersection of two operands, assigning the result to the lefthand
operand.
Usage
void m(Set<Integer> primes, Set<Integer> evens) {
variable Set<Integer> two = primes;
two &= evens;
}
Definition
And is defined as follows:
lhs = lhs & rhs
See the language specification for more details.
Polymorphism
The &=
operator is polymorphic.
The &
in the definition is the intersection operator which
depends on the Set
interface.
Type
The result type of the &=
operator is a Set
with the same element type as
the left hand operand's element type.
See also

&
(intersection) operator  API documentation for
Set
 set operators in the language specification
 operator precedence in the language specification
 Operator polymorphism