Why prefer the use of a collection over loop