Ds\Map::intersect
Ds\Map::intersect
(PECL ds >= 1.0.0)
Ds\Map::intersect — Creates a new map by intersecting keys with another map.
Description
public Ds\Map Ds\Map::intersect ( Ds\Map $map )
Creates a new map containing the pairs of the current instance whose keys are also present in the given map
. In other words, returns a copy of the current instance with all keys removed that are not also in the other map
.
A ∩ B = {x : x ∈ A ∧ x ∈ B}
Note:
Values