(self, *other: Iterable[Hashable])
| 185 | |
| 186 | # @cython.ccall # cdef function cannot have star argument |
| 187 | def intersection(self, *other: Iterable[Hashable]) -> OrderedSet[_T]: |
| 188 | other_set: Set[Any] = set.intersection(self, *other) |
| 189 | return self._from_list([a for a in self._list if a in other_set]) |
| 190 | |
| 191 | def __and__(self, other: AbstractSet[Hashable]) -> OrderedSet[_T]: |
| 192 | return self.intersection(other) |