Egison is a programming language created in 2013 by Satoshi Egi.
#609on PLDB | 11Years Old |
git clone https://github.com/egison/egison/
The Egison Programming Language
-- Extract all twin primes from the infinite list of prime numbers with pattern matching!
def twinPrimes :=
matchAll primes as list integer with
| _ ++ $p :: #(p + 2) :: _ -> (p, p + 2)
as integer list matchAll multiset set with
Feature | Supported | Example | Token |
---|---|---|---|
Pattern Matching | ✓ |