View Source Goal.String (goal v1.1.0)

Defines string operations.

Summary

Functions

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

Functions

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

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

Examples

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