valhallac

Compiler for set-theoretic programming language.
git clone git://git.knutsen.co/valhallac
Log | Files | Refs | README | LICENSE

hello_world_function.vh (201B)


1
2
3
4
5
6
7
8
9
io = import :IO

let: greeting : String -> String
     greeting name = "Hello, %{name.capitalise}."
in module Hello

io::puts <| Hello::greeting place
  where: place : String
         place = "World"