query
On this page

concatMapStringsSep

lib.concatMapStringsSep

Docs pulled from | This Revision | 35 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

lib.strings.concatMapStringsSep usage example

concatMapStringsSep "-" (x: toUpper x)  ["foo" "bar" "baz"]
=> "FOO-BAR-BAZ"
(lib.strings.concatMapStringsSep)

Noogle also knows

Aliases