concat mask

Allows concatenate to work with masked data.