Questions tagged [clean-language]

Clean is a general purpose, purely functional, lazy programming language.

Clean is a general purpose, state-of-the-art, pure and lazy functional programming language designed for making real-world applications. The language Clean first appeared in 1987.

Some of its most notable language features are uniqueness typing, dynamic typing, and generic functions.

It was one of the inspirations of the programming language.

Homepage

Wikipedia article

18 questions
0
votes
2 answers

How to check if a number is palindrome in Clean

I am solving this homework of clean programming language; The problem is we have a number of five digits and we want to check whether it's an odd palindrome or not. I am stuck at the stage of dividing the number to five separate digits and perform a…
Khalil
  • 33
  • 7
0
votes
1 answer

How to read from stdin?

How to do this in Clean? Pseudo code: loop: input = read_stdin if input == "q": break loop else: print "you input: ", input Actually, I have had a glance at some pdf. But I got an imagination, It's difficult to deal with…
0
votes
1 answer

Error in using Maybe types in CLEAN

i'm a newbie with functional programming and CLEAN. I have a few functions and i get error in one, and i cannot figured out why. (I tagged that with Haskell because it's very similar to CLEAN.) My module: module Prac combine :: (Maybe a) (Maybe…
Thomas
  • 366
  • 6
  • 19
1
2