ref: 690ab7aa8e6c56a4ae8a2bd5bce58d1df681234e
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 ;; }