set.foreach for old array-uniq