A better way to write this function? (style question)
bearophile
bearophileHUGS at lycos.com
Mon Dec 30 14:58:33 PST 2013
Thomas Gann:
> I've written a Markov bot in D, and I have function whose job
> it is to take an input string, convert all newline characters
> to spaces and all uppercase letters to lowercase, and then
> return an array of words that are generated by splitting the
> string up by whitespace.
Take a look at the ways I have used here:
http://forum.dlang.org/thread/zdhfpftodxnvbpwvklcv@forum.dlang.org
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list