This is better:
    n.times.inject(nil){yield}