in reply to compare values within a hash
When looking at the first numbers, 10 and 18 are less than 10 apart, 18 and 25 are less than 10 apart, but 10 and 25 aren't. Do you want to keep the 10 (because it's the lesser of 10 and 18). Do you want to keep the 18? (because it's the lesser of 18 and 25). Keep them both? Is the 25 discarded? And if I havegroup1 10 20 group1 18 22 group1 25 21
What is the result?group1 10 20 group1 15 25
that is, take the lesser of (10, 15) and the greater of (20, 25)?group1 10 25
Finally, what if I have:
The first numeral values are less than 10 apart, so you keep the 10. But 15 and 50 are more than 10 apart. What's the result?group1 10 15 group1 15 50
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare values within a hash
by rookierabbit (Initiate) on Oct 27, 2008 at 17:32 UTC | |
by gwadej (Chaplain) on Oct 27, 2008 at 18:55 UTC |