Eddie Rucker wrote:
> catmap for strings has a bug.
Ok, this is fixed now (r879).
> upcase s::string = s-32 if s!0 >= "a" && s!0 <= "z"; = s;
> catmap upcase "ainsworth";
["A","I","N","S","W","O","R","T","H"]
Note that catmap correctly returns a list there (as it always does). If
you want a string result, just combine string and map instead:
> string $ map upcase "ainsworth";
"AINSWORTH"
Albert
--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr....@t-..., ag...@mu...
WWW: http://www.musikinformatik.uni-mainz.de/ag
|