@@ -71,6 +71,7 @@ concat = Native.String.concat
7171{-| Get the length of a string.
7272
7373 length "innumerable" == 11
74+ length "" == 0
7475
7576-}
7677length : String -> Int
@@ -254,7 +255,7 @@ any = Native.String.any
254255all : (Char -> Bool) -> String -> Bool
255256all = Native.String.all
256257
257−{-| See if a string contains another one.
258+{-| See if the second string contains the first one.
258259
259260 contains "the" "theory" == True
260261 contains "hat" "theory" == False
@@ -265,7 +266,7 @@ Use `Regex.contains` if you need something more flexible.
265266contains : String -> String -> Bool
266267contains = Native.String.contains
267268
268−{-| See if a string starts with another one.
269+{-| See if the second string starts with the first one.
269270
270271 startsWith "the" "theory" == True
271272 startsWith "ory" "theory" == False
@@ -273,7 +274,7 @@ contains = Native.String.contains
273274startsWith : String -> String -> Bool
274275startsWith = Native.String.startsWith
275276
276−{-| See if a string ends with another one.
277+{-| See if the second string ends with the first one.
277278
278279 endsWith "the" "theory" == False
279280 endsWith "ory" "theory" == True
@@ -281,7 +282,7 @@ startsWith = Native.String.startsWith
281282endsWith : String -> String -> Bool
282283endsWith = Native.String.endsWith
283284
284−{-| Get all of the indexes for a substring.
285+{-| Get all of the indexes for a substring in another string.
285286
286287 indexes "i" "Mississippi" == [1,4,7,10]
287288 indexes "ss" "Mississippi" == [2,5]