Implemented array for-each.