diff options
author | Max Schumacher <maximilianbschumacher@gmail.com> | 2020-10-20 12:43:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 12:43:49 +0200 |
commit | a990544875a1a70f757f49afdc94ed661437bba4 (patch) | |
tree | d47d097e20ff023fa159ab28923361ba0f1a52e2 | |
parent | 8bf25eedeedf3ebff9f26ac7ec2b9fc037ebb4dd (diff) | |
parent | aa8d8e408a8d9cce66de273a8689a9e38d9f5134 (diff) |
Merge pull request #4038 from sburris0/master
[Haskell/en] Explain the !! operator
-rw-r--r-- | haskell.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown index 1cc79ec9..328da5c9 100644 --- a/haskell.html.markdown +++ b/haskell.html.markdown @@ -61,6 +61,8 @@ not False -- True -- A string is a list of characters ['H', 'e', 'l', 'l', 'o'] -- "Hello" + +-- Lists can be indexed with the `!!` operator followed by an index "This is a string" !! 0 -- 'T' |