Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment trim

std/text/compose::trim


Inputs

⇥ text: Stream<string>

Outputs

↦ trimmed: Stream<string>


Trim stream of strings.

Stream strings with leading and trailing whitespace removed. Whitespace is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.