chickadee » srfi-60 » reverse-bit-field

reverse-bit-field n start endprocedure

Returns n with the order of bits start to end reversed.

Example:

(number->string (reverse-bit-field #xa7 0 8) 16)
   ; => "e5"