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