[Haskell-cafe] Re: Embedding newlines into a string?

Benjamin L. Russell dekudekuplex at yahoo.com
Wed Apr 16 23:42:06 EDT 2008


Ariel,

In response to your comment, since there was
apparently no section devoted to pitfalls of iterating
over lists, I have added the section "1.4 Iterating
Over a List" in the following HaskellWiki page; viz:

Common Misunderstandings - HaskellWiki
http://www.haskell.org/haskellwiki/Common_Misunderstandings#Iterating_Over_a_List

Hope this helps....

Benjamin L. Russell

--- "Benjamin L. Russell" <dekudekuplex at yahoo.com>
wrote:

> Ariel,
> 
> Check out the following HaskellWiki pages:
> 
> Common Misunderstandings - HaskellWiki
>
http://www.haskell.org/haskellwiki/Common_Misunderstandings
> 
> Things to avoid - HaskellWiki
> http://www.haskell.org/haskellwiki/Things_to_avoid
> 
> Hope these help....
> 
> Benjamin L. Russell
> 
> --- "Ariel J. Birnbaum" <valgarv at gmx.net> wrote:
> 
> > > That's exactly what I was thinking about, but
> your
> > hanoi_shower only
> > > handles list of exactly one action, but you have
> > to handle longer lists,
> > > too. This could be done with explicit recursion
> > 
> > This seems to be a common pitfall for Haskell
> > newcomers: mistaking
> > a single-element list pattern (such as [x]) for a
> > pattern that iterates
> > over every element in the list.
> > I can't seem to find a page with a list of common
> > pitfalls and mistakes...
> > is there such a thing?
> > 
> > -- 
> > Ariel J. Birnbaum
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> >
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> > 
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 



More information about the Haskell-Cafe mailing list