Definitionپێناسە
A that lets you add and remove items at both ends, the front and the rear (say "deck"). Used from one end it works as a ; used from opposite ends, as a queue. Python's collections.deque adds and removes at both ends quickly.
کە ڕێگە دەدات لە هەردوو سەرەوە، پێشەوە و دواوە، شت زیاد بکەیت و لای بەریت (بە ئینگلیزی وەک «دێک» دەخوێنرێتەوە). ئەگەر تەنها لە یەک سەرەوە بەکار بهێنرێت وەک کار دەکات؛ ئەگەر لە دوو سەری جیاوە، وەک . collections.dequeـی لە هەردوو سەرەوە بە خێرایی زیاد دەکات و لادەبات.
Exampleنموونە
appendleft() and popleft() work at the front; append() and pop() at the rear.
appendleft() و popleft() لە پێشەوە کار دەکەن؛ append() و pop() لە دواوە.
from collections import deque
d = deque(["B", "C"])
d.appendleft("A"); d.append("D")
print(d.popleft(), d.pop()) # A DOther Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کیووە دووسەرەکە، کیووە دووسەرەکان، کیوویەکی دووسەرە، کیووی دووسەرەی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Descriptive: کیوو (the registry's queue) + دووسەرە (with two ends), a translation of 'double-ended queue'. Proposed by the py-queues writer (PYDW1).