Skip to content

Instantly share code, notes, and snippets.

@honda0510
Created January 4, 2013 04:56
Show Gist options
  • Save honda0510/4450038 to your computer and use it in GitHub Desktop.
Save honda0510/4450038 to your computer and use it in GitHub Desktop.
【Haskell】tailを自前で実装
tail' :: [a] -> [a]
tail' [] = []
tail' [a] = []
tail' (_:xs) = xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment