Clean is an actively used programming language created in 1987.

32Years Old 2,305Users 2Jobs

Example code from the Hello World Collection:

// Hello World in Clean

module hello

Start :: String
Start = "Hello World!\n"

Example code from Linguist:

definition module GenMap

import StdGeneric

generic gMap a b :: .a -> .b
derive gMap c, UNIT, PAIR, EITHER, CONS, FIELD, OBJECT, {}, {!} 

derive gMap [], (,), (,,),  (,,,), (,,,,), (,,,,,), (,,,,,,), (,,,,,,,)

Example code from Wikipedia:

(^) infixr 8 :: Int Int -> Int
  (^) x 0 = 1
  (^) x n = x * x ^ (n-1)
Edit

Last updated February 11th, 2019