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