Campbell

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Description

Campbell is a language inspired by Joseph Campbell's Monomyth. All programs written in it expose the universal archetypal program.

Example programs

factorial n = foldl (*) 1 [1..n] -- calculates factorial
(define (factorial n)
 (if (= n 1)
  1
  (* n (factorial (- n 1) ))))
calculates factorial

Discussion

In fact every program in Campbell calculates the factorial function making it possibly one of the most concise languages out there.