Function that replaces all sequences of spaces in a string with a single space character.
Syntax |
string str_compact (string str) |
---|---|
str |
This is the string to be compacted |
Result |
Returns the compacted string |
Validity |
Rule, Task |
Note |
Example usage:
|