bitwise-unfold Bradley Lucier (18 Feb 2023 23:08 UTC)
Re: bitwise-unfold John Cowan (18 Feb 2023 23:37 UTC)

bitwise-unfold Bradley Lucier 18 Feb 2023 23:08 UTC

I have some questions about the specification of bitwise-unfold.

========================================
Generates a non-negative integer bit by bit, starting with bit 0. If the
result of applying stop? to the current state (whose initial value is
seed) is true,
========================================
By "true", does it mean any value other than #f?  (I presume yes.)

========================================
return the currently accumulated bits as an integer. Otherwise, apply
mapper to the current state to obtain the next bit of the result by
interpreting a true value as a 1 bit and a false value as a 0 bit.
========================================
I presume the only "false value" is #f.

By "true value" does it mean anything other than #f?  Or does the result
need to be boolean, the value #t?

Thanks.

Brad