1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

Merge pull request #4038 from sburris0/master

[Haskell/en] Explain the !! operator
This commit is contained in:
Max Schumacher
2020-10-20 12:43:49 +02:00
committed by GitHub

View File

@@ -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'