Absolutely Mike, check it out:
The first branch of the original conditional executes when num_neighbors is:
That's the collection of numbers for which the first condition is true, i.e. [2, 4).... Indeed the integers 2 and 3. The second branch...Code:=-------O <-------------|-----|---|---|------> 0 2 4
Yes, that's the complement with respect to the number line, i.e. (-inf, 2) union [4, inf). Which is identical to your suggestion:Code:<------O =------> <-------------|-----|---|---|------> 0 2 4
For the first branch, that is [2, 3], and the else block executes for anything else...Code:= = <-------------|-----|---|---|------> 0 2 3 4
That is the set of numbers (-inf, 2) union (3, inf).Code:<------O O------> <-------------|-----|---|---|------> 0 2 4
Thanks for the prompt. I apologize that I haven't been more involved, I'm kind of in the middle of several activities at the moment including sharpening up my PERL for a couple contracts that I would like to land....
Best Regards,



2Likes
LinkBack URL
About LinkBacks


