Split the string by whitespace and return non-empty tokens. Equivalent to Go's strings.Fields.
Example:
string[] result = Strings.words (" hello world ");
assert (result.length == 2);
assert (result[0] == "hello");
| s |
the string. |
|
array of words. |