Is your feature request related to a problem or challenge?
array_position with a scalar needle could be optimized in a similar way to array_has, which would probably yield a big speedup.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response