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