string->digit
Reads a digit in a given base.
Target
Signature
1string->digit(position::integer, base::integer)Reads a digit in a given base.
string->digit is called with member syntax on a receiver value. string->digit works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.
Parameters
position- Required value of type
integer. Supplypositionpositionally unless the signature shows a keyword form. base- Required value of type
integer. Supplybasepositionally unless the signature shows a keyword form.
Examples
Basic call
1'F'->digit(1, 16)The example shows the receiver and result shape. In templates, apply escaping at the final output boundary.