Amb: Difference between revisions

13 bytes removed ,  6 months ago
m
Minor reformatting of code.
m (→‎{{header|Wren}}: Correction to 'wordsets' declaration.)
m (Minor reformatting of code.)
Line 910:
</pre>
 
Alternatively, without===Without using external libraries.===
<syntaxhighlight lang="c++">
#include <functional>
Line 920:
std::string join(const std::string& delimiter, const std::vector<std::string>& list) {
return list.empty() ? "" : std::accumulate(++list.begin(), list.end(), list[0],
[delimiter](auto& a, auto& b) { return a + delimiter + b; });
}
 
871

edits