ref: 06f83c93631d8af9eb25199a8229183c48b89ce8
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 ;; }