Implement the {append} macro