Handbook
Glossary
hanoi ( n from to other -- )
Vocabulary
rosetta-code.towers-of-hanoi
Inputs
n
an
object
from
an
object
to
an
object
other
an
object
Outputs
None
Definition
USING:
kernel
math
;
IN:
rosetta-code.towers-of-hanoi
::
hanoi
( n from to other -- )
n 0
>
[
n 1
-
from other to
hanoi
from to
move
n 1
-
other to from
hanoi
]
when
;