ref: 70ab782a15f19d4ea160304bb35f7cd1defa7d5d
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
;;
}