[Haskell-cafe] (!!) operator usage

2006-03-24 Thread Neil Rutland
Hi there, I hope i have sent this in the right format - i gather i may have been rude by sending it incorrectly - if this is still wrong give me a shout. Anyway today i am enquiring about how to use the !! operator - i have looked at Zvons Haskell refeernce and it says that it takes a list(

[Haskell-cafe] Wheres this going wrong

2006-03-22 Thread Neil Rutland
Hi there, Thanks to some advise by one of the other posters i have chosen to try and set up a list that uses lookup to find the values of the elements within it. However what i have attempted so far has resulted in odd answers or errors. Anyway here it is, i have given each element a string at

[Haskell-cafe] Returning a list element?

2006-03-20 Thread Neil Rutland
Hi there, thank you all for your help with regards to the integer addition question that i asked yesterday it was very good in clarifying my ideas. However i would now like to ask for your expert help once again. Basically i have a list of 16 tuples of 12 elements each, each tuple representing a

[Haskell-cafe] First Question

2006-03-19 Thread Neil Rutland
Hi Everyone, I am completely new to this so my apologies if some of the questions are ill described/directed, but if they are just let me know and i'll try and make the relevent changes. I chose this one as it seemed the right sort for me with my (rudimentary knowledge), the first question is