Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus committed Mar 27, 2023
1 parent 4c23865 commit 6798d1e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,31 @@ False
True
```

### Merging two filters: ###
Create first filter:
```
>>> from fastBloomFilter import bloom
>>> bf1 = bloom.BloomFilter(array_size=1024**3)
>>> bf1.add("1")
```
Create second filter:
```
>>> from fastBloomFilter import bloom
>>> bf2 = bloom.BloomFilter(array_size=1024**3)
>>> bf2.add("2")
```
Merge the two filters into a third filter:
```
>>> bf3 = bf1 + bf2
```
Check the elements in the third filter:
```
>>> print(bf3["1"])
True
>>> print(bf3["2"])
True
```

### Contributing ###
```
Contributons:
Expand Down

0 comments on commit 6798d1e

Please sign in to comment.