ref: b31626248ea64c23d2020846e2cac1c751348b61
dir: /lib/std/chomp.myr/
use "hasprefix" pkg std = const chomp : (str : byte[:]#, pfx : byte[:] -> bool) ;; const chomp = {str, pfx if std.hasprefix(str#, pfx) str# = str#[pfx.len:] -> true else -> false ;; }