rep(foo(), n) # foo() is any code returning a value