[Haskell-beginners] don't understand this

Roelof Wobben rwobben at hotmail.com
Mon Jun 27 14:47:20 CEST 2011


Hello, 

 I must find the k st number in a list.
So I have this list [1,2,3,4] and I have to find the second number.
According to the solution the answer is : 
elementAt list i = list !! (i-1)

But where do I fill in [1,2,3,4] and the 2 ?


Roelof

  		 	   		  


More information about the Beginners mailing list