Message328967
For deque, we can add peek() function to deque or just make it clear in the document that we can use deque[0] to access the first element(I can only find index method in the document)
For Queue, I found Java and C++ has the function like first() or peek(), I'm not sure should we also implement a method like this.
* http://www.cplusplus.com/reference/queue/queue/ |
|
Date |
User |
Action |
Args |
2018-10-31 05:23:49 | Windson Yang | set | recipients:
+ Windson Yang, rhettinger, docs@python |
2018-10-31 05:23:49 | Windson Yang | set | messageid: <1540963429.35.0.788709270274.issue35118@psf.upfronthosting.co.za> |
2018-10-31 05:23:49 | Windson Yang | link | issue35118 messages |
2018-10-31 05:23:49 | Windson Yang | create | |
|