- import std.typecons; import std.math; /* - - You will be given a string of words separated by commas or spaces. Your task is ? ---- + You will be given a string of words separated by commas or spaces. Your task is - to split the string into words and return an array of the words. ? ---- + to split the string into words and return an array of the words. - - For example: ? ---- + For example: - >>> words_string("Hi, my name is John") ? ---- + >>> words_string("Hi, my name is John") - ["Hi", "my", "name", "is", "John"] ? ---- + ["Hi", "my", "name", "is", "John"] - >>> words_string("One, two, three, four, five, six") ? ---- + >>> words_string("One, two, three, four, five, six") - ["One", "two", "three", "four", "five", "six"] ? ---- + ["One", "two", "three", "four", "five", "six"] - */ string[] words_string(string s)