With the replacement of our with my, your method, as a generalized method is fine.
poj's use of grep is preferred when you have a simple criterion, such as your >850, as it will be faster than the generalized method.
In reply to Re: iterating through array and saving matches to new array
by learnedbyerror
in thread iterating through array and saving matches to new array
by jazzfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |