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: @+9

  • Space: @+9

See the complexity glossary for what @, w, dw, dbit, n mean.

Source


← Previous: bit.print_as_digit/1 Next: bit.print_hex_uint