add the popn macro to pop n elements from a list at once