Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created November 23, 2015 12:21
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 chuck0523/584f7ba60f87a9fdc56d to your computer and use it in GitHub Desktop.
Save chuck0523/584f7ba60f87a9fdc56d to your computer and use it in GitHub Desktop.
main = do
let ls1 = [1..4]
print ls1
let ls2 = [1,3..8]
print ls2
let ls3 = ["foo", "bar", "baz"]
print ls3
print (ls3 !! 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment