batch_row_closure function

Generate closure function to run batch_snf in an apply-friendly format