Browse Source

Set

pull/10/head
Jure Šorn 5 years ago
parent
commit
8f57a77582
1 changed files with 5 additions and 0 deletions
  1. 5
      README.md

5
README.md

@ -100,6 +100,11 @@ Set
<set> |= <set> <set> |= <set>
``` ```
```python
<set>.remove(<el>) # Throws error.
<set>.discard(<el>) # Doesn't throw error.
```
```python ```python
<set> = <set>.union(<coll.>) # Or: <set> | <set> <set> = <set>.union(<coll.>) # Or: <set> | <set>
<set> = <set>.intersection(<coll.>) # Or: <set> & <set> <set> = <set>.intersection(<coll.>) # Or: <set> & <set>

Loading…
Cancel
Save