I have an array like prods[[1,2] [3,4]], where the first elements(1,3) is a product_id, and the second (2,4) – it’s quantity. I need to list all the products and their quantities.
I have an array like prods[[1,2] [3,4]] , where the first elements(1,3) is a
Share
You can iterate the array:
Output: