Miranda programming language is a historical programming language created in 1985.

34Years Old 1,020Users 0Jobs

Example code from Wikipedia:

> || The infinite list of all prime numbers.

The list of potential prime numbers starts as all integers from 2 onwards;
as each prime is returned, all the following numbers that can exactly be
divided by it are filtered out of the list of candidates.

> primes = sieve [2..]
> sieve (p:x) = p : sieve [n | n <- x; n mod p ~= 0]

Last updated February 11th, 2019