in reply to How to find last occurance in an array

Search from the back. You could reverse your original array — put it somewhere after the map plus block.

And, uh, your original code is not very good. For example, it'll match "2250" too.

  • Comment on Re: How to find last occurance in an array