summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2015-10-31 18:17:05 +0800
committerAdam Bard <github@adambard.com>2015-10-31 18:17:05 +0800
commite87c1bfd5185deacebf21dbc9dcbf617c3c468cc (patch)
treed2d8a0061b7c8a34dc51ffc981d63903349f5ce3
parentedfc99e198fd2e87802ea81d6779fbadfab64919 (diff)
parentb5cb14703ac99e70ecd6c1ec2abd9a2b5dbde54d (diff)
Merge pull request #1932 from xou/haskell-finite-list-indexing
[haskell/en]: Fix !! operator
-rw-r--r--haskell.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index 08611e63..936744a0 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -81,7 +81,7 @@ not False -- True
[5,4..1] -- [5, 4, 3, 2, 1]
-- indexing into a list
-[0..] !! 5 -- 5
+[1..10] !! 3 -- 4
-- You can also have infinite lists in Haskell!
[1..] -- a list of all the natural numbers