Monday, May 30, 2011

nth Element of a List

kElem::[Int]->Int->Int
kElem (x:xs) n = xs !! n-x

No comments:

Post a Comment