@@ -118,35 +118,35 @@ Functions
118
118
The data type Mixed can be either a BitSet object, a String or an integer representing a native bitset with 31 bits.
119
119
120
120
121
- BitSet set(ndx[ , value=0)
121
+ BitSet set(ndx[ , value=0] )
122
122
---
123
123
Mutable; Sets value 0 or 1 to index ` ndx ` of the bitset
124
124
125
- int get(int ndx)
125
+ int get(ndx)
126
126
---
127
127
Gets the value at index ndx
128
128
129
129
BitSet setRange(from, to[ , value=1] )
130
130
---
131
131
Mutable; Helper function for set, to set an entire range to a given value
132
132
133
- BitSet clear([ from[ , to] )
133
+ BitSet clear([ from[ , to]] )
134
134
---
135
135
Mutable; Sets a portion of a given bitset to zero
136
136
137
137
- If no param is given, the whole bitset gets cleared
138
138
- If one param is given, the bit at this index gets cleared
139
139
- If two params are given, the range is cleared
140
140
141
- BitSet slice([ from[ , to] )
141
+ BitSet slice([ from[ , to]] )
142
142
---
143
143
Immutable; Extracts a portion of a given bitset as a new bitset
144
144
145
145
- If no param is given, the bitset is getting cloned
146
146
- If one param is given, the index is used as offset
147
147
- If two params are given, the range is returned as new BitSet
148
148
149
- BitSet flip([ from[ , to] )
149
+ BitSet flip([ from[ , to]] )
150
150
---
151
151
Mutable; Toggles a portion of a given bitset
152
152
@@ -218,7 +218,7 @@ BitSet.fromHexString(str)
218
218
---
219
219
Alternative constructor to pass a hex string
220
220
221
- BitSet.Random(n=32)
221
+ BitSet.Random([ n=32] )
222
222
---
223
223
Create a random BitSet with a maximum length of n bits
224
224
0 commit comments