We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cfd4ab commit 4c23865Copy full SHA for 4c23865
README.md
@@ -79,6 +79,8 @@ True
79
True
80
>>> print(bf.query('12'))
81
False
82
+>>> print(bf['1'])
83
+True
84
```
85
86
### Querying data and at the same time adding it: ###
fastBloomFilter/bloom.py
@@ -269,6 +269,9 @@ def _query(self, __hash):
269
self.queryes += 1
270
return ret
271
272
+ def __getitem__(self, value):
273
+ return self.query(value)
274
+
275
def update(self, value):
276
"""
277
This function first queryies the filter for a value then adds it.
0 commit comments