From aa8d8e408a8d9cce66de273a8689a9e38d9f5134 Mon Sep 17 00:00:00 2001 From: Spencer Burris Date: Thu, 15 Oct 2020 12:29:37 -0700 Subject: [PATCH] [Haskell/en] Explain the !! operator --- haskell.html.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/haskell.html.markdown b/haskell.html.markdown index 1cc79ec9..328da5c9 100644 --- a/haskell.html.markdown +++ b/haskell.html.markdown @@ -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'