method char.isWhitespace
Whether the character is whitespace (space, tab, newline, ...).
Example:
fn main() io {
print("{' '.isWhitespace()} {'a'.isWhitespace()}")
}Output
true false
True for a whitespace character.
Example:
fn main() io {
print("{' '.isWhitespace()}")
}Output
true
pub(api) fn isWhitespace() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:914