Code Examples


An example is better than a thousand words, so here are many simple examples demonstrating some of the basic features of elastiC.
Please keep in mind that these examples are by no means exhaustive, and show only a small percentage of elastiC's features.

hello world The classics: hello world
types a look to some basic types
shapes a tiny OOP example
closure simple, but powerful, closure (anonymous function) usage
hash an OO hash table implementation demonstrating classes, objects (class instances) and exceptions
visitable a real world OO example: generalized visitor pattern support