FEAT: more general-purpose `eval-next` function.