Xor() array reduction method

In reply to dave_59:

In reply to Fipser@VA:
I believe you want to write

in_act = in_reg.xor() with (item.index < 4 ? item  : 0 );

Does this iterate through all items, checking wether the item index is < 4 and if not, xor’ing the remaining items with 0?