From official documentation:
extendleft(iterable)
Extend the left side of the deque by appending elements from iterable. Note, the series of left appends results in reversing the order of elements in the iterable argument.
What is the reason/concept behind this method's behaviour? I know I can easily change it by using reversed
, but I'm just curious.