Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created June 4, 2013 07:53
Show Gist options
  • Save ksomemo/5704295 to your computer and use it in GitHub Desktop.
Save ksomemo/5704295 to your computer and use it in GitHub Desktop.
99_questions No.3
elementAt :: [a] -> Int -> a
elementAt xs d = xs !! (d - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment