function e(e, t) {
	let n = t.indexOf(e) + 1;
	return t[n >= t.length ? 0 : n];
}
/**
* Returns a first contiguous copy of a section of an array where predicate is true
* @param arr
* @param predicate
* @returns
*/
function t(e, t) {
	let n = e.findIndex(t);
	if (n < 0) return [];
	let r = (() => {
		for (let r = n; r < e.length; r++) if (!t(e[r], r)) return r;
		return e.length;
	})();
	return e.slice(n, r);
}
export { e as rotate, t as sliceBy };

//# sourceMappingURL=domain.js.map