View Source Goal.String (goal v0.0.1)

Defines string operations.

Link to this section Summary

Functions

Returns a string where all leading, trailing, and multiple inner Unicode whitespaces have been removed.

Link to this section Functions

@spec squish(binary()) :: binary()

Returns a string where all leading, trailing, and multiple inner Unicode whitespaces have been removed.

examples

Examples

iex> squish(" banana  man ")
"banana man"