(&self, other: ArgIterable, vm: &VirtualMachine)
| 244 | } |
| 245 | |
| 246 | pub(super) fn union(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<Self> { |
| 247 | let set = self.clone(); |
| 248 | for item in other.iter(vm)? { |
| 249 | set.add(item?, vm)?; |
| 250 | } |
| 251 | |
| 252 | Ok(set) |
| 253 | } |
| 254 | |
| 255 | pub(super) fn intersection(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<Self> { |
| 256 | let set = Self::default(); |