ref: 894bed9a153ab56763627975f9e109281bec297b
dir: /libstd/hassuffix.myr/
use "cmp.use" pkg std = const hassuffix : (s : byte[:], suff : byte[:] -> bool) ;; const hassuffix = {s, suff var tail if suff.len >= s.len tail = s[s.len - suff.len:] match strncmp(tail, suff, suff.len) | `Equal: -> true | _: -> false ;; ;; }