Clean is an actively used programming language created in 1987. Clean is a general-purpose purely functional computer programming language. For much of the language's active development history it was called Concurrent Clean, but this was dropped at some point. . Read more on Wikipedia...

32Years Old 525Users 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)

Trending Repos

repo stars description

Last updated December 10th, 2019

Edit Clean