Skip to content

Commit 89c361a

Browse files
committed
Minor README update
1 parent 7eb7330 commit 89c361a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ You can use a bitmap nearly as the classical Python set in your code:
1414
bm1 = BitMap()
1515
bm1.add(3)
1616
bm1.add(18)
17+
print("has 3:", 3 in bm1)
18+
print("has 4:", 4 in bm1)
1719
bm2 = BitMap([3, 27, 42])
1820
print("bm1 = %s" % bm1)
1921
print("bm2 = %s" % bm2)
@@ -24,6 +26,8 @@ Output:
2426

2527
::
2628

29+
has 3: True
30+
has 4: False
2731
bm1 = BitMap([3, 18])
2832
bm2 = BitMap([3, 27, 42])
2933
bm1 & bm2 = BitMap([3])

0 commit comments

Comments
 (0)