def extend(self, items):
        """Extend the queue by a number of elements.

        Parameters
        ----------
        items : list
            A list of items.

        """
        for item in items:
            self.push(item)