function f(n, t) {
  const e = t.indexOf(n) + 1;
  return t[e >= t.length ? 0 : e];
}
function u(n, t) {
  const e = n.findIndex(t);
  if (e < 0)
    return [];
  const o = (() => {
    for (let i = e; i < n.length; i++)
      if (!t(n[i], i))
        return i;
    return n.length;
  })();
  return n.slice(e, o);
}
export {
  f as rotate,
  u as sliceBy
};
//# sourceMappingURL=domain.js.map
