kernelthread.com

Aleph

The Towers of Hanoi as an Aleph program.

According to the Aleph web site:

Aleph is a multi-threaded functional programming language with dynamic symbol bindings that support the object oriented paradigm. Aleph features a state of the art runtime engine that supports both 32 and 64 bits platforms. Aleph comes with a rich set of libraries that are designed to be platform independent.

# The Towers Of Hanoi # Aleph # Copyright (C) 2002 Amit Singh. All Rights Reserved. # http://hanoi.kernelthread.com # # Tested under Aleph 0.8.1 (http://aleph-lang.org) # trans dohanoi (n f u t) ( if (== n 1) { println f " --> " t } { dohanoi (- n 1) f t u println f " --> " t dohanoi (- n 1) u f t } ) trans hanoi (n) ( dohanoi n 1 2 3 ) hanoi 3

Download

hanoi.als