Closed s-hadinger closed 3 months ago
See @405. Add:
string.startswith(hay:string, needle:string [, case_insensitive:bool]) -> bool
string.endswith(hay:string, needle:string [, case_insensitive:bool]) -> bool
These new methods are lightweight, allow for case sensitive or case insensitive matches, and don't need to allocate any temporary object.
See @405. Add:
string.startswith(hay:string, needle:string [, case_insensitive:bool]) -> bool
string.endswith(hay:string, needle:string [, case_insensitive:bool]) -> bool
These new methods are lightweight, allow for case sensitive or case insensitive matches, and don't need to allocate any temporary object.