public float idx(int index, float element) {
    """
	Set a value in the list.
	
	@param index   index
	@param element new value
	@return old value at this index
    """
        float oldValue = values[index];
        values[index] = element;
        return oldValue;
    }
public float idx(int index, float element) {
        float oldValue = values[index];
        values[index] = element;
        return oldValue;
    }
public float idx ( int index , float element ) { float oldValue = values [ index ] ; values [ index ] = element ; return oldValue ; }
Set a value in the list.

@param index   index
@param element new value
@return old value at this index
Set a value in the list .