com.calitha.commons.IntegerList.Repeat C# (CSharp) Method

Repeat() public static method

Returns an IntegerList whose elements are copies of the specified value.
public static Repeat ( int value, int count ) : IntegerList
value int The value to copy multiple times in the list.
count int The number of times value should be copied.
return IntegerList
		public static IntegerList Repeat(int value, int count)
		{
			IntegerList result = new IntegerList();
			for (int i=0; i < count; i++)
			{
				result.Add(value);
			}
			return result;
		}