hex.input_as_hex (arity 2)

hex = hex_from_ascii(input(1byte))
*supports 0-9,a-f,A-F. if can’t cast, jumps to error.

Signature

def input_as_hex hex, error @ try_dec, do_dec, do_hex, hex_switch, finish_hex, upper, end { ... }

Defined in hex/input.fj — lines 48–86 (view on GitHub).

Complexity

  • Time: 7@+11

  • Space: 8.5@+92

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

Source

Depends on


← Previous: hex.input/2 Next: hex.input_as_hex/3