lapply_func function

Choose a parallel or sequential apply function