mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update haskell.md
This commit is contained in:
parent
0d10b10425
commit
63e12ed0cf
@ -66,7 +66,7 @@ True || False -- True
|
||||
['H', 'e', 'l', 'l', 'o'] -- "Hello"
|
||||
|
||||
-- Lists can be indexed with the `!!` operator followed by an index
|
||||
-- Be aware that since lists are linked lists, this is an O(n) operation
|
||||
-- but this is an O(n) operation because lists are linked lists
|
||||
"This is a string" !! 0 -- 'T'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user