Skip to content

Commit

Permalink
[Haskell/en] Explain the !! operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sburris0 committed Oct 15, 2020
1 parent 33cd1f5 commit aa8d8e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haskell.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand Down

0 comments on commit aa8d8e4

Please sign in to comment.