endorse
brings a few extensions to ooc that makes it nicer
to use in day-to-day work.
Call list
with any number of arguments with the same type to
make a list literal :)
The =>
operator is overriden to form tuples out of two expressions.
This allows all sorts of interesting constructs!
map
takes any number of tuples, and makes a map out of them:
alphabet := map(
"a" => "anachronic",
"b" => "beget",
// etc.
"z" => "zentrum"
)