diff options
author | Devin McGinty <devin.lee.mcginty@gmail.com> | 2015-02-01 16:39:52 -0500 |
---|---|---|
committer | Devin McGinty <devin.lee.mcginty@gmail.com> | 2015-02-01 16:39:52 -0500 |
commit | 411b2b01d3a83369f0754ec03b40499e4f8bcade (patch) | |
tree | 7b5f49549e7ce74576a82c7ab77f9ea67216c066 /haskell.html.markdown | |
parent | 9bf5a408f49e2e36658ef80538999052d5b1860f (diff) |
Add example of string-as-list and fix punctuation
Diffstat (limited to 'haskell.html.markdown')
-rw-r--r-- | haskell.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown index d5dd5141..52433aaa 100644 --- a/haskell.html.markdown +++ b/haskell.html.markdown @@ -59,6 +59,7 @@ not False -- True "Hello " ++ "world!" -- "Hello world!" -- A string is a list of characters +['H', 'e', 'l', 'l', 'o'] -- "Hello" "This is a string" !! 0 -- 'T' @@ -67,7 +68,7 @@ not False -- True ---------------------------------------------------- -- Every element in a list must have the same type. --- These two lists are the same +-- These two lists are the same: [1, 2, 3, 4, 5] [1..5] |