n-ary for-each