From Esolang
Jump to navigation Jump to search
Rewrite It In Initialization!

Initialization is an esoteric programming language in which variables may only be initialized.


This program prints "Hello, world!":

main = putStrLn "Hello, world!"

This program calculates the factorial of a number:

factorio n = if n == 0 then 1 else n * (factorio (n - 1))
main = print . factorio =<< readLn


A bash interpreter is reproduced below.

runghc "$@"