In this challenge you will receive a list of integers as input. Your program should then determine if there are two equal values in the list at an even distance from each other.
This is code-golf so the goal is to minimize the size of your source code as measured in bytes.
IO
You may take the array input the standard ways, but just for a little extra fun, you may optionally take the number 2 as an additional input.
Your program or function should output one fixed value if the input satisfies the requirement and a distinct fixed value if it does not.
Test cases
False:
[]
[0]
[1,2]
[1,1]
[10,1]
[2,-1,3]
[1,1,-2]
[1,2,3,4,5,6,7,8]
[1,2,3,1,2,3]
True:
[1,10,1]
[2,2,2]
[1,2,3,4,0,-1,1,8]
This challenge is based on this older challenge by FlipTack. In that challenge one is checking whether there is pair of values at an even distance from each other which are not equal. This is conceptually a minor change, but because equality is transitive and inequality is not, this change thwarts the short approaches to that challenge.
