ref: 937e5e744d303c722c7782209f94c706b8f4c22a
dir: /lib/std/hasprefix.myr/
use "cmp"
pkg std =
const hasprefix : (s : byte[:], pre : byte[:] -> bool)
;;
const hasprefix = {s, pre
match strncmp(s, pre, pre.len)
| `Equal: -> true
| _: -> false
;;
}