This post originated from an RSS feed registered with Agile Buzz
by Oliver Steele.
Original Post: FizzBuzz Station
Feed Title: Oliver Steele on Software
Feed URL: http://feeds.feedburner.com/osteele
Feed Description: Languages of the real and artificial.
The following Ruby snippets aren’t quite the same as the automaton above (this Haskell version is actually closest to that), but here’s a couple of Regexp solutions in a style that I haven’t seen before. They have a kind of Turing-tape flavor to them. I’m not much of a golfer, so please let me know in the comments if you tighten them up any.