Hey all im currently using a function to match pages with a pattern then returning the index of all those that match e.g.
(index1_match1(['Apple','banana','bananas','chicken','bana'],'bana')) will return (1,2,4)
at the moment i have declared an empty array and using the push function to add the data in the array is there any other ways to do this as i am not allowed to use a push function as we havnt been taught it yet