Initialization

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.

Examples

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

Interpreters

A bash interpreter is reproduced below.

#!/bin/bash
runghc "$@"