Skip to content

Instantly share code, notes, and snippets.

@chrisdone
Created June 13, 2020 16:05
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 chrisdone/bbad27951fb5e7487d57737c922c8a1d to your computer and use it in GitHub Desktop.
Save chrisdone/bbad27951fb5e7487d57737c922c8a1d to your computer and use it in GitHub Desktop.
Int-taking-functions
Prelude/Data.List/Data.Vector/Data.Map:
(!!) :: [a] -> Int -> a
replicate :: Int -> a -> [a]
take :: Int -> [a] -> [a]
drop :: Int -> [a] -> [a]
splitAt :: Int -> [a] -> ([a], [a])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment