Palindromic List
One beautiful property of XOR (symbol : \(\oplus\)) is that for any integer \(x\), we have \(x \oplus x = 0\). Using this property, Chris came up with an algorithm that check if a list \(L\) is palindromic.
1 2 3 4 5 6 7 8 9 

Certainly, this function is restricted to lists that contain only numbers. What is the domain of the numbers in the list such that this function is applicable without error?
Details and Assumptions
a ^ b
returns \(a\oplus b\). A list
L
is palindromic ifL
remains the same after applyingL.reverse()
.  In Python's list, the last element is
L[1]
, second last element isL[2]
and so on.