[mercury-users] Mercury programmer required ;-)
Peter Schachte
pets at cs.mu.OZ.AU
Fri Sep 25 12:04:46 AEST 1998
On Fri, Sep 25, 1998 at 11:05:26AM +1000, Warwick HARVEY wrote:
> This version looks far less daunting, but has the drawback that
> people will probably criticise it for its lack of efficiency (I mean,
> *searching* the string for each character?
How about using a map from character to rot13 character instead of a
string? Should be much more efficient, and, I would expect, more
natural as well.
I still think doing maths on the character codes is the easiest,
fastest, and clearest solution, though. Probably the nicest language
for writing this application is sh (invoking tr).
--
Peter Schachte | What we cannot speak about we must pass over
mailto:pets at cs.mu.OZ.AU | in silence.
http://www.cs.mu.oz.au/~pets/ | -- Wittgenstein
PGP: finger pets at 128.250.37.3 |
More information about the users
mailing list