diff options
author | Adam Bard <github@adambard.com> | 2015-10-31 18:17:05 +0800 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2015-10-31 18:17:05 +0800 |
commit | e87c1bfd5185deacebf21dbc9dcbf617c3c468cc (patch) | |
tree | d2d8a0061b7c8a34dc51ffc981d63903349f5ce3 | |
parent | edfc99e198fd2e87802ea81d6779fbadfab64919 (diff) | |
parent | b5cb14703ac99e70ecd6c1ec2abd9a2b5dbde54d (diff) |
Merge pull request #1932 from xou/haskell-finite-list-indexing
[haskell/en]: Fix !! operator
-rw-r--r-- | haskell.html.markdown | 2 |
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 |