Quantcast
Channel: Answers for "Why won't identical 'for' loops work?"
Browsing all 4 articles
Browse latest View live

Answer by TheLagbringer

The side checking is wrong. The right side search is unbound and will iterate to the end of the array (which is a bit weird since you say it does not return anything ... maybe you should test on more...

View Article



Answer by ScienceIsAwesome

I agree that this is definitely not the most efficient or effective way to compare gems, personally I would create a Gem class, give it a gemtype variable for comparison and since you're comparing in...

View Article

Answer by TheLagbringer

The side checking is wrong. The right side search is unbound and will iterate to the end of the array (which is a bit weird since you say it does not return anything ... maybe you should test on more...

View Article

Answer by ScienceIsAwesome

I agree that this is definitely not the most efficient or effective way to compare gems, personally I would create a Gem class, give it a gemtype variable for comparison and since you're comparing in...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images