summaryrefslogtreecommitdiffhomepage
path: root/haskell.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'haskell.html.markdown')
-rw-r--r--haskell.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index 1cc79ec9..29712570 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -41,6 +41,8 @@ False
-- Boolean operations
not True -- False
not False -- True
+True && False -- False
+True || False -- True
1 == 1 -- True
1 /= 1 -- False
1 < 10 -- True
@@ -61,6 +63,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'