Method About Deal With Array Repeat

Add a method to deal with array repeat.