[Haskell] a quick question

malcolm.wallace malcolm.wallace at me.com
Thu Feb 3 10:38:43 CET 2011


Can I suggest you take this discussion to either the haskell-beginners list, or haskell-cafe?
This list (haskell at haskell.org) is intended primarily for announcements.
Regards,
    Malcolm

On 03 Feb, 2011,at 09:33 AM, Matthias Görgens <matthias.goergens at googlemail.com> wrote:

> uptable::[[Char]]->[([Char],Int,Int,Int,Int)]->[([Char],Int,Int,Int,Int)]
> uptable (xf:xs) main_array = map (\(x,y,z,r,t)-> do if x==xf then tupup x y
> z r t second xs ) main_array

Why do you have a `do' in that snippet?

_______________________________________________
Haskell mailing list
Haskell at haskell.org
http://www.haskell.org/mailman/listinfo/haskell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell/attachments/20110203/3978a89a/attachment.htm>


More information about the Haskell mailing list