[Home] [By Thread] [By Date] [Recent Entries]
Michael Kay wrote:
Not sure why you are using index-of (or some, for that matter). It looks to me like Aha! (erlebnis) Thanks, Michael. It was one of those problems I can look at forever without 'seeing' the inverse-logic algorithm you present me here. Instead of going through the objects and 'satisfying' from each object (hence trying index-of to find near-by objects), I should've used a simple range operator and indices instead. This definitely clears up my mind for several lock-up problems (and I shouldn't stay up too late ;) (or some, for that matter)That was a typo, the example problem only works, of course, with 'every', I have some other cases where 'some' is required.
|

Cart



