From abfd08731f5b5bb70da4ce4a6cfbffef2a24bd2d Mon Sep 17 00:00:00 2001 From: Dull Bananas Date: Wed, 22 Apr 2020 21:05:03 -0700 Subject: [PATCH] Add String.split example to show that it always returns at least one list item even if the string is empty --- src/String.elm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/String.elm b/src/String.elm index 0e60bdd6..caa3db2e 100644 --- a/src/String.elm +++ b/src/String.elm @@ -184,6 +184,7 @@ concat strings = split "," "cat,dog,cow" == ["cat","dog","cow"] split "/" "home/evan/Desktop/" == ["home","evan","Desktop", ""] + split "," "" == [""] -} split : String -> String -> List String