eat

If arr starts with prefix, slice it off and return true. Otherwise leave arr unchaned and return false.

bool
eat
(
T
)
(
ref T[] arr
,
T[] prefix
)

Meta