in reply to iterating over two arrays

You may want to see To Pattern Match or not to Pattern Match.