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