@contentsloop()

This function loops over every object in the location given in the first
argument, evaluating the code given as its third argument for
each object substituting it for the %-substitution given as the
second argument.

Usage:
@contentsloop("14", "o", @print("In the lounge there is ", @shortname("%o"), "%c"))