Re: Thanks Rasmus!
Mmm, that does somewhat depend on one's perception of 'elegance'. Arguably for something to be truly 'elegant' it must be 'functional', in fact functionality and efficiency should be the foundations of elegant code - it does what it is supposed to do, no more and no less, does it efficiently and in a way that is pleasing to read, i.e. maintainable!