Given a dictionary, is there a method to do something inside a code block for each member of the dictionary? Would that same member work for other kinds of collections as well?