Created
October 14, 2014 12:54
-
-
Save raine/3d7ff9d8f20212b2b669 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TitleCase (titleCase) where | |
import Data.Char | |
import Debug.Trace | |
titleCase :: String -> String -> String | |
titleCase minor title = "a" | |
capitalize :: String -> String | |
capitalize (x:xs) = toUpper x : xs | |
splitOn :: (a -> Bool) -> [a] -> [[a]] | |
splitOn _ [] = [] | |
splitOn f l@(x:xs) | |
| f x = splitOn f xs | |
| otherwise = let (h,t) = break f l in h:(splitOn f t) | |
-- myfun a b | trace ("myfun " ++ show a ++ " " ++ show b) False = undefined | |
-- myfun a b = ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment