// "Collapse loop with stream 'reduce()'" "true-preview"

import java.util.*;

public class Main {
  public void testBitwiseXorLong() {
    int[] arr = new int[]{1, 2, 3, 4};
    long acc = 12443;
      acc ^= Arrays.stream(arr).asLongStream().reduce(0, (a, b) -> a ^ b);
  }
}