Handbook
Glossary
base-digits> ( seq radix -- n )
Vocabulary
math
.
parser
Inputs
seq
a
sequence
radix
an
object
Outputs
n
an
integer
Word description
Converts a sequence of digits (each 'digit' can be any positive integer) in a given radix to an integer.
Definition
USING:
kernel
math
sequences
;
IN:
math.parser
:
base-digits>
( seq radix -- n )
[
swap
[
*
]
dip
+
]
curry
0
swap
reduce
;