next up previous contents index
Next: minus! Up: Set Previous:   Contents   Index


intersection


Usage

intersection(x,y)
intersection!(x,y)


Signature

intersection: (%, %) $\to$ %


Parameter Type Description
x,y % sets


Returns

Return $x \cap y = \{ a \mbox{ such that }a \in x \mbox{ and } a \in y\}$.


Remarks

intersection! does not make a copy of $x$, which is therefore modified after the call. It is unsafe to use the variable $x$ after the call, unless it has been assigned to the result of the call, as in x := intersection!(x, y).



Manuel Bronstein 2004-06-28