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