- bits->list i #!optional lenprocedure
- bits->vector i #!optional lenprocedure
Returns a list/vector of len booleans corresponding to each bit of the non-negative integer i, returning bit #0 as the first element, bit #1 as the second, and so on. #t is returned for each 1; #f for 0.
(bits->list #b1110101)) => (#t #f #t #f #t #t #t) (bits->list 3 5)) => (#t #t #f #f #f) (bits->list 6 4)) => (#f #t #t #f) (bits->vector #b1110101)) => #(#t #f #t #f #t #t #t)