on master help sign in
Address PR comments
commit516b7a0aa33160d9dec56afb8d56bdb36fc6d0b1 authorMax Goldstein <maxgoldstein1@gmail.com> dateWed 8 Oct 2014, 23:40 (12 years ago) parentb84308e
1 file changed+3
libraries/List.elm+3
libraries/List.elm+3
@@ -153,6 +153,8 @@ filter = Native.List.filter
153153{-| Apply a function that may succeed to all values in the list, but only keep
154154the successes.
155155
156+ String.toInt : String -> Maybe Int
157+
156158 filterMap String.toInt ["3", "4.0", "5", "hats"] == [3,5]
157159-}
158160filterMap : (a -> Maybe b) -> [a] -> [b]
@@ -212,6 +214,7 @@ concatMap : (a -> appendable) -> [a] -> appendable
212214concatMap f list = concat (map f list)
213215
214216{-| Get the sum of the list elements.
217+
215218 sum [1..4] == 10
216219-}
217220sum : [number] -> number