What would be more interesting than character golf in this
instance is time golf, ie, which of these implementations
runs fastest? A function like this can be called often
in the course of bioinformatics analysis, so you want it
to be responsive.
If I have time today (right :-) maybe I will do some benchmarks.
Scott