starts_with multimethod

Methods

starts_with(haystack:Str, needle:Str) Source: stdlib.ngs:3543
Check whether a string starts with another string

Returns

Bool

Example

"abcd".starts_with("ab")  # true
"ab".starts_with("abcd")  # false