ref: 42230832997d2092cad72a775e738ab2d50df1dc
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
;;
}