Aleph ![]() |
http://www.aleph-lang.org |
Description: | Aleph is an interpreted, object-oriented, functional language which inherits many from Scheme and C++. |
Factorial | Michael Neumann |
trans fac (n) ( if (> n 1) (* n (fac (- n 1))) 1 ) println (fac 6) |
Calculates the factorial. Results
720 . |
Hello World | Michael Neumann |
# Hello World in Aleph println "Hello World" |
Prints "Hello World" onto the
screen. |
Squares | Michael Neumann |
# deklariere Variable trans index 1 while (< index 11) { println (* index index) " " } |
Outputs the squares from 1 to
10. |