set method

void set(
  1. dynamic index,
  2. dynamic value
)

Implementation

void set( dynamic index, dynamic value ){
	if( index is List<int> ){
		if( index[1] < 0 ){ // 負数でターミネートされた要素番号配列
			set( index[0], value );
		} else if( (index[0] >= 0) && (index[0] != ClipGlobal.invalidArrayIndex) ){
			if( index[0] >= _nodeNum ){
				_newNode( index[0] );
			}
			_node![index[0]].set( _copyArray( index, 1 ), value );
		}
	} else if( (index >= 0) && (index != ClipGlobal.invalidArrayIndex) ){
		if( index >= _vectorNum ){
			_newVector( index );
		}
		_vector[index].ass( value );
	}
}