官术网_书友最值得收藏!

26. Joining strings together separated by a delimiter

Write a function that, given a list of strings and a delimiter, creates a new string by concatenating all the input strings separated with the specified delimiter. The delimiter must not appear after the last string, and when no input string is provided, the function must return an empty string.

Example: input { "this","is","an","example" } and delimiter ' ' (space), output: "this is an example".

主站蜘蛛池模板: 哈密市| 米脂县| 修水县| 青岛市| 印江| 阿拉善右旗| 威海市| 新津县| 铅山县| 湘阴县| 三台县| 淄博市| 山阳县| 当涂县| 兴城市| 迭部县| 焦作市| 林甸县| 平乐县| 巴塘县| 古浪县| 嵊泗县| 南溪县| 定西市| 云林县| 永新县| 蕲春县| 连州市| 阳春市| 浏阳市| 敖汉旗| 同德县| 荔波县| 枣阳市| 额济纳旗| 新晃| 株洲县| 乌拉特中旗| 安陆市| 伊金霍洛旗| 华阴市|