function boolean( x, indices, values, stride, getIndex, maxIndex ) {
	var idata;
	var iget;
	var iv;
	var i;
	var j;

	idata = indices.data;
	iget = indices.accessors[ 0 ];

	iv = 0;
	for ( i = 0; i < idata.length; i++ ) {
		j = getIndex( iget( idata, i ), maxIndex );
		x[ j ] = values[ iv ];
		iv += stride;
	}
	return x;
}
Replaces elements in a boolean array with provided values.

@private
@param {Uint8Array} x - input array
@param {Object} indices - index array object
@param {Uint8Array} values - values to set
@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 {Uint8Array} input array

@example
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
var Uint8Array = require( '@stdlib/array/uint8' );
var ind = require( '@stdlib/ndarray/base/ind' ).factory;

var x = new Uint8Array( [ 1, 0, 0, 1 ] );

var indices = [ 3, 1, 2, 0 ];
var values = new Uint8Array( [ 0, 1, 1, 0 ] );

var getIndex = ind( 'throw' );

var out = boolean( x, arraylike2object( indices ), values, 1, getIndex, x.length-1 );
// returns <Uint8Array>[ 0, 1, 1, 0 ]