Created
February 13, 2019 02:26
-
-
Save favonia/05802693cf6ee1b1c80b245f7c883167 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
import Data.Char | |
import Data.List | |
import Control.Applicative | |
up :: String -> String | |
up = map toUpper | |
convertWord :: String -> String | |
convertWord = intercalate "\\ls " . map pure . up | |
convert :: String -> String | |
convert = intercalate "\\ns " . map convertWord . words |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment