If any two items in a list is equal to a given number
There's a failing case you might have missed.  If the target number is exactly twice the value of one of the entries, then you'll wrongly return true.

Test case:

anyequalto([5], 10)


Besides that, try to think of a better name for the function.  Perhaps contains_pair_totalling() as a start?