Lists can be used to implement a queue by adding elements to one end and removing them from the other.