StringExt extension

on

Properties

firstOrNone Option<String>

Available on String, provided by the StringExt extension

Returns the first character as a Some, or None if the string is empty.
no setter
lastOrNone Option<String>

Available on String, provided by the StringExt extension

Returns the last character as a Some, or None if the string is empty.
no setter
noneIfEmpty Option<String>

Available on String, provided by the StringExt extension

otherwise returns None.
no setter

Methods

elementAtOrNone(int index) Option<String>

Available on String, provided by the StringExt extension

Returns the character at the given index as a Some, or None if the index is out of bounds.