ref: 133e0113e998eacbb469db5e773552ed69c85a55
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 ;; }