Skip to content

Instantly share code, notes, and snippets.

@wridgers
Created June 8, 2011 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wridgers/1015674 to your computer and use it in GitHub Desktop.
Save wridgers/1015674 to your computer and use it in GitHub Desktop.
removen :: Int -> [a] -> [a]
removen n arr =
let (x,y) = splitAt n arr
in x ++ tail y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment