19joinToString(TIterator begin, TIterator end,
const std::string& separator) {
23 std::string first = *begin;
25 return std::accumulate(
29 [&separator](
const std::string& acc,
const std::string& element) {
30 return acc + separator + element;
std::string joinToString(TIterator begin, TIterator end, const std::string &separator)
Joins multiple elements together into a string, separated by a given separator.