add #for_each_element(array) and an example of using it