Database & utility
Scalar
set_bit()
Sets the nth bit in bitstring to newvalue; the first (leftmost) bit is indexed 0. Returns a new bitstring
Arguments & returns
set_bit(bitstring, index, new_value)
Scalar
| Overload link | bitstring | index | new_value |
Returns |
|---|---|---|---|---|
| #01 | BIT | INTEGER | INTEGER |
BIT |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.