On Mon, Aug 1, 2022, at 09:19, Paul Moore wrote:
> There are a lot of complex cases you'd need to consider. What would the
> value of range(3, 15, 2) + range(8, 12, 2) be? It's not a range in the
> sense of being describable as (start, end, step). And simply saying
> "that's not allowed" wouldn'
These kind of problems can easily be handled with numpy:
>>> import numpy as np
>>> print(np.union1d(np.arange(3,15,2), np.arange(8,12,2)))
[ 3 5 7 8 9 10 11 13]
Op 3/08/2022 om 21:23 schreef Random832:
On Mon, Aug 1, 2022, at 09:19, Paul Moore wrote:
There are a lot of complex cases you'