Re: [pure-lang-users] catmap bug
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-09-27 23:10:49
|
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 |