concatMapStringsSep
lib.strings.concatMapStringsSep
Docs pulled from | This Revision | 22 minutes ago
Maps a function over a list of strings and then concatenates the result with the specified separator interspersed between elements.
Inputs
sep
-
Separator to add between elements
f
-
Function to map over the list
list
-
List of input strings
Type
concatMapStringsSep :: string -> (a -> string) -> [a] -> string
Examples
concatMapStringsSep
usage example
concatMapStringsSep "-" (x: toUpper x) ["foo" "bar" "baz"]
=> "FOO-BAR-BAZ"