Haskell Noob
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment