function boolean( x, mask, out, stride, offset ) {
	var mdata;
	var mget;
	var io;
	var i;

	mdata = mask.data;
	mget = mask.accessors[ 0 ];

	io = offset;
	for ( i = 0; i < mdata.length; i++ ) {
		if ( !mget( mdata, i ) ) {
			out[ io ] = x[ i ];
			io += stride;
		}
	}
	return out;
}
Applies a mask to a boolean array and assigns unmasked values to elements in a boolean output array.

@private
@param {Collection} x - boolean input array view
@param {Object} mask - mask array object
@param {Collection} out - boolean output array view
@param {integer} stride - output array stride
@param {NonNegativeInteger} offset - output array offset
@returns {Collection} output array view

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

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

var out = new Uint8Array( 4 );

var arr = boolean( x, arraylike2object( mask ), out, 1, 0 );
// returns <Uint8Array>[ 1, 0, 0, 0 ]