View Source Goal.String (goal v0.3.3)

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"