(self, *iterables: Iterable[_T])
| 159 | |
| 160 | # @cython.ccall # cdef function cannot have star argument |
| 161 | def update(self, *iterables: Iterable[_T]) -> None: |
| 162 | for iterable in iterables: |
| 163 | for element in iterable: |
| 164 | # inline of add. mainly for python, since for cython we |
| 165 | # could create an @cfunc @inline _add function that would |
| 166 | # perform the same |
| 167 | if element not in self: |
| 168 | self._list.append(element) |
| 169 | set.add(self, element) |
| 170 | |
| 171 | def __ior__( |
| 172 | self: OrderedSet[Union[_T, _S]], iterable: AbstractSet[_S] |