Noogλe
search input
Function of the day
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] -> StringExamples
lib.strings.concatMapStringsSepusage exampleconcatMapStringsSep "-" (x: toUpper x) ["foo" "bar" "baz"] => "FOO-BAR-BAZ"