On re-reading old code
Contents
I came across this beauty in some old code of mine:
|
|
This was "necessary" because I got an array of one-element arrays back, and I wanted to check whether or not that one element was the same across the array.
Three seconds of thinking made me realize that just maybe, I could do this:
|
|
I like Ruby.
Author Aldric Giacomoni
LastMod 2009-12-09