[Haskell] a quick question

Matthias Görgens matthias.goergens at googlemail.com
Thu Feb 3 10:33:11 CET 2011


> 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?



More information about the Haskell mailing list