Ruby is beautiful

Ruby makes programming easy. Here is a simple problem which would have
taken old-fashioned programers about five lines, yet, Ruby can do it in
just one line!