Anonymous user
Towers of Hanoi: Difference between revisions
→{{header|Groovy}} Groovy no longer interprets index ranges as Java API "subList"s
Thundergnat (talk | contribs) m (→{{header|REBOL}}: Remove vanity tags) |
|||
Line 1,648:
=={{header|Groovy}}==
Unlike most solutions here this solution manipulates more-or-less actual stacks of more-or-less actual rings.
<lang groovy>def tail = { list, n -> def m = list.size(); list
final STACK = [A:[],B:[],C:[]].asImmutable()
|