Browse Source

Set

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

10
README.md

@ -100,11 +100,6 @@ Set
<set> |= <set>
```
```python
<set>.remove(<el>) # Throws error.
<set>.discard(<el>) # Doesn't throw error.
```
```python
<set> = <set>.union(<coll.>) # Or: <set> | <set>
<set> = <set>.intersection(<coll.>) # Or: <set> & <set>
@ -114,6 +109,11 @@ Set
<bool> = <set>.issuperset(<coll.>) # Or: <set> >= <set>
```
```python
<set>.remove(<el>) # Throws error.
<set>.discard(<el>) # Doesn't throw error.
```
### Frozenset
#### Is hashable and can be used as a key in dictionary.
```python

Loading…
Cancel
Save