function accessors( x, indices, values, stride, getIndex, maxIndex ) {
	var xdata;
	var idata;
	var vdata;
	var xset;
	var iget;
	var vget;
	var iv;
	var i;
	var j;

	xdata = x.data;
	idata = indices.data;
	vdata = values.data;

	xset = x.accessors[ 1 ];
	iget = indices.accessors[ 0 ];
	vget = values.accessors[ 0 ];

	iv = 0;
	for ( i = 0; i < idata.length; i++ ) {
		j = getIndex( iget( idata, i ), maxIndex );
		xset( xdata, j, vget( vdata, iv ) );
		iv += stride;
	}
	return xdata;
}
Replaces specified elements of an accessor array with provided values.

@private
@param {Object} x - input array object
@param {Object} indices - index object
@param {Object} values - values object
@param {NonNegativeInteger} stride - index stride for accessing elements in `values`
@param {Function} getIndex - function for resolving an array index
@param {NonNegativeInteger} maxIndex - maximum array index (inclusive)
@returns {Collection} input array

@example
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
var ind = require( '@stdlib/ndarray/base/ind' ).factory;

var x = toAccessorArray( [ 1, 2, 3, 4 ] );

var indices = toAccessorArray( [ 1, 2 ] );
var values = toAccessorArray( [ 20, 30 ] );

var getIndex = ind( 'throw' );

var out = accessors( arraylike2object( x ), arraylike2object( indices ), arraylike2object( values ), 1, getIndex, x.length-1 );

var v = x.get( 0 );
// returns 1

v = x.get( 1 );
// returns 20