This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Haskell: Convert list of words to a sentence in upper case
Prelude> importData.CharPreludeData.Char> let wordsToSentence list = [toUpper c | word <- list, c <-' ': word]
PreludeData.Char>
PreludeData.Char> wordsToSentence ["Hello", "PTR", "How", "are", "you"]
" HELLO PTR HOW ARE YOU"
No comments:
Post a Comment