Given that Acknex is often called an engine for programmers, I guess a lot of you here actually are programmers, so quick and dirty, what's currently your favourite snippet of code that does something cool with only a few lines? May be any language, any context, as long as the length/effect ratio is cool in any way.

Oh and if you feel like it, do NOT tell us what it actually does, instead let us have a guess. If it's not too hard. wink

I'll start off with my current favourite in C++ - this should be rather easy to guess:

Code:
template <class T>
static T& Instance(){
   static T t;
   return t;
}