function accessors( x, mask, values ) {
	var xdata;
	var mdata;
	var vdata;
	var xset;
	var mget;
	var vget;
	var iv;
	var N;
	var i;

	xdata = x.data;
	mdata = mask.data;
	vdata = values.data;

	xset = x.accessors[ 1 ];
	mget = mask.accessors[ 0 ];
	vget = values.accessors[ 0 ];

	N = vdata.length;
	iv = 0;
	for ( i = 0; i < xdata.length; i++ ) {
		if ( !mget( mdata, i ) ) {
			xset( xdata, i, vget( vdata, iv ) );
			iv = ( iv+1 ) % N;
		}
	}
	return xdata;
}
Replaces elements of an accessor array with provided values.

@private
@param {Object} x - input array object
@param {Object} mask - mask array object
@param {Object} values - values object
@returns {Collection} input array

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

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

var mask = toAccessorArray( [ 1, 0, 0, 1 ] );
var values = toAccessorArray( [ 20, 30 ] );

var out = accessors( arraylike2object( x ), arraylike2object( mask ), arraylike2object( values ) );

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

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