FISh    hoch http://www-staff.it.uts.edu.au/~cbj/FISh/index.html
 
  Beschreibung: FISh ist eine funktionale Sprache mit imperativen Eigenschaften. Der FISh Compiler ist in OCaml geschrieben und der erzeugte Code ist hochperformanter C-Code. Laut den Benchmark-Ergebnissen ist Quicksort in FISh doppelt so schnell wie die qsort Routine der C-Standard Bibliothek (weil C Pointer benutzt, FISh nicht).


 Hello World   Michael Neumann
(* Hello World in FISh *)

output "Hello World" ;;
Gibt "Hello World" auf dem Bildschirm aus.


 Squares (1)   Michael Neumann
for 1 <= i < 11 do output (i*i) done;;
Gibt die Quadrate von 1 bis 10 aus.


 Squares (2)   Michael Neumann
(* Funktion sqr *)
let sqr x = x * x ;;

(* Array mit 10 Integern *)
let a = fill { 10 : int_shape } with [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ;;

(* Nun die Funktion sqr auf alle Elemente von Array a anwenden *)
let res = map sqr a;; 

output res;;
Gibt die Quadrate von 1 bis 10 aus.