JanetDocsPlaygroundI'm feeling luckyGitHub sign in

buffer/bit-clear



    cfunction
    src/core/buffer.c on line 371, column 1

    (buffer/bit-clear buffer index)

    Clears the bit at the given bit-index. Returns the buffer.


1 exampleSign in to add an example
Loading...
(get @"A"                      0)  # => 65 (0b01000001)
(get (buffer/bit-clear @"A" 0) 0)  # => 64 (0b01000000)
(get (buffer/bit-clear @"A" 6) 0)  # =>  1 (0b00000001)
cellularmitosisPlayground