initial checkin from subversion

This commit is contained in:
Tretter
2017-02-07 20:06:59 +00:00
commit 7ae0afbc4b
7 changed files with 59 additions and 0 deletions

18
stringManip.hs Normal file
View File

@@ -0,0 +1,18 @@
module StringManip where
import Data.Char
uppercase, lowercase :: String -> String
uppercase = map toUpper
lowercase = map toLower
capitalise :: String -> String
capitalise x =
let capWord (x:xs) = toUpper x : xs
in unwords (map capWord (words x))
yy :: String -> String
yy a =
let capWord (a:b) = toUpper a : b
in a