[Haskell-beginners] question about list comprehension or creating array
David Virebayre
dav.vire+haskell at gmail.com
Mon Jan 17 16:36:08 CET 2011
2011/1/17 Ching-Chao Chang <CChang at geodigmcorp.com>:
> [(i,v) | i<-[1..3], v<-e]
Try this
[(i,v) | i<-[1..3], v<-e]
See the list it produces. It should give you a hint.
David.
More information about the Beginners
mailing list