words (Function)

Signature: words(s: string) -> List<string>

Description: Splits on runs of ASCII whitespace; empty results are dropped.

Parameters

  • s (string): The string to split

Returns: List<string>

Example

print(join(words("a  b\tc"), ","))
print (join (words "a  b\tc", ","))