:sig
function str_starts_with(haystack : string, needle : string) bool

:returns
`true` when the text starts with the prefix.

:content
Use `str_starts_with` to test a string prefix.

:example capy render
print(str_starts_with("/doc", "/"), "\n")

:see-group
strings
