2 May
2001
2 May
'01
8:42 a.m.
At 2001-05-02 01:34, Hannah Schroeter wrote:
How about this:
import Char(toUpper)
capitalize :: String -> String capitalize [] = [] capitalize (c:cs) = toUpper c : cs
capitalizeList :: [String] -> [String] capitalizeList = map capitalize
...or if you prefer... capitalizeList :: [String] -> [String] capitalizeList = map (map toUpper) -- Ashley Yakeley, Seattle WA