A possible solution could be to do something like this:
.Filter(x => x.SomeInts.In(Enumerable.Range(0,5)))
where SomeInts is an IEnumerable<int>
Thank you! This helped alot and works in most cases.
There still is the question what to do when ranges are huge. In some cases you could do a stepped range, perhaps, but in others I'm still looking for a solution.
Consider this code to filter search results based on whether they are in the given range or not:
Problem: how do I solve the equivalent if MyFooInt is an IEnumerable
, that is to check if any of the ints are within the range?