Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Im new to haskell and i would need some help to start with. Ive been experimenting some basic information, but i would need some complex stuff. My "tutor" told me to start off with some basic stuff like:
i need to write a function which it is given a list of lists and it does this:
mytry :: Integer -> Integer
[[1,2,3][2,6,5][2,3][8,7,1][9,3]] = 155
does this: 1*2*3+2*6*5+2*3+8*7*1+9*3
Any ideas pls? :S
I know its a simple program, but i've never written a program at all, only simple orders. Help pls and thanks.
0 · ·