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