@@ -153,6 +153,8 @@ filter = Native.List.filter
153{-| Apply a function that may succeed to all values in the list, but only keep
153{-| Apply a function that may succeed to all values in the list, but only keep
154the successes.
154the successes.
156+ String.toInt : String -> Maybe Int
156 filterMap String.toInt ["3", "4.0", "5", "hats"] == [3,5]
158 filterMap String.toInt ["3", "4.0", "5", "hats"] == [3,5]
158filterMap : (a -> Maybe b) -> [a] -> [b]
160filterMap : (a -> Maybe b) -> [a] -> [b]
@@ -212,6 +214,7 @@ concatMap : (a -> appendable) -> [a] -> appendable
212concatMap f list = concat (map f list)
214concatMap f list = concat (map f list)
214{-| Get the sum of the list elements.
216{-| Get the sum of the list elements.
215 sum [1..4] == 10
218 sum [1..4] == 10
217sum : [number] -> number
220sum : [number] -> number