That’s just 10 lines. I won’t post the C++ abomination for accomplishing
the same thing here, let’s just say that it’s 45 lines long.
In a similar vein, check out:
http://ai-app-prog.rubyforge.org/
where I’m translating AI code examples from C to Ruby. As you say, lots of
C code just goes away and gets replaced with one liners involved
Array.collect and the like. Pretty cool!
Yours,
Tom