introduce a pop argument to Exchange#match