Towers of Hanoi: Difference between revisions

m
Line 3,664:
</pre>
 
=={{header|lambdatalkLambdatalk}}==
 
<syntaxhighlight lang="scheme">
Line 3,679:
 
{def hanoi
{lambda {:hdisks :a :b :c}
{if {A.empty? :hdisks}
then
else {hanoi {A.rest :hdisks} :a :c :b}
{div > move {A.first :hdisks} from :a to :b}
{hanoi {A.rest :hdisks} :c :b :a} }}}
-> hanoi
 
99

edits