set method

void set(
  1. int i,
  2. int value
)

Implementation

void set( int i, int value ){
	if( i >= _val.length ){
		List<int> tmp = List.filled( i + 1, 0 );
		for( int j = 0; j < _val.length; j++ ){
			tmp[j] = _val[j];
		}
		_val = tmp;
	}
	_val[i] = value;
}