Open
Description
When creating the predicate pred = in(something)
, it may be that something
is not a finite, iterable collection, but that in(x, something)
is still a fast operation. (In my case it's 3D points in
a Sphere
- fast to determine, but Sphere
is an uncountable set).
In this case, the implementation of _findin(a, b)
is not valid, because we assume b
can be converted to a Set
here.
This function is called by findall
here, without consideration whether something
(i.e. pred.x
) is finite.
I would recommend changing this signature to the case where pred.x isa Union{AbstractArray, Tuple}
for consistency, but I'm not sure if that will cause regressions for anyone?