bit.print_as_digit (arity 2)¶
prints x[:n] as n ascii-characters (‘0’s and ‘1’s, lsb first).
x is a bit[:n], and n is a size constant.
Signature¶
def print_as_digit n, x { ... }
Defined in bit/output.fj — lines 59–61 (view on GitHub).
Complexity¶
Time:
@+9Space:
@+9
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def print_as_digit n, x {
rep(n, i) .print_as_digit x+(n-1-i)*dw
}
← Previous: bit.print_as_digit/1
Next: bit.print_hex_uint →