Difference between revisions of "User talk:Cgo"

From HaskellWiki
Jump to: navigation, search
(answer question with advice)
(Deleted; I did not write this. Who did???)
Line 1: Line 1:
== Printing ==
excuse me, I have a question is Haskell programming and I need someone help me to solve it
I have a list of strings, I want to use putStr in Data.Char to show it out in the terminal screen. For example, a string likes ["!@#$","#@$"] will be shown as
Actually, I don't know the good way the make it. Please help me {{unsigned|Cgo}}
:The best place for your question is something like the haskell-beginners mailing list or really, just the #haskell IRC channel.
:There are several approaches you could take. Some combination of `map`, `putStr`, `mapM`, `print`, and `++` would work. As specified, you want `mapM print`:
Prelude> mapM print ["!@#$","#@$"]
:I also strongly urge you to read [[Homework help]] & http://www.catb.org/~esr/faqs/smart-questions.html . --[[User:Gwern|Gwern]] 20:26, 23 November 2010 (UTC)

Latest revision as of 08:45, 25 November 2010