i have an array and i need to iterate the array and return all matches | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i have an array and i need to iterate the array and return all matches

19th Mar 2017, 8:36 AM
jeremiah orourke
jeremiah orourke - avatar
2 Answers
+ 1
Which language please?
19th Mar 2017, 9:02 AM
Geoffrey L
Geoffrey L - avatar
0
rly? this is easy: just iterate trough the array en check with an if statement if the element matches with what you want. You have to search yourself for these little things, if you do, you are going to learn effective. But if you're going to ask for answers for little problems like this, you are then barely going to make progress.
19th Mar 2017, 9:04 AM
EagleEye
EagleEye - avatar