
16 Mar
2010
16 Mar
'10
4:57 a.m.
Hi, I have something like: data Stuff = Stuff { aNum :: Int , anStr :: String } deriving (Show) let first = Stuff 123 "qwe" let second = Stuff 321 "asd" print first print second and works fine. What is the right "map" statement if I want to generate these stuff using lists like: let strs = [ "qwe", "asd", "zxc" ] let nums = [ 123, 321, 345] ? Cheers: Szilva