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