An optimised version of lapply for the special case of operating on seq_len(n)
seq_len(n)
loop_apply(n, f)
n
length of sequence
f
function to apply to each integer
env
environment in which to evaluate function