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