feat(utils): add values(start, end) slice accessor to DoubleEndedQueue - #167
Conversation
|
Add tests for |
…ueue` ## Summary Ports [OpenZeppelin/openzeppelin-contracts#6522](OpenZeppelin/openzeppelin-contracts#6522) from openzeppelin-contracts 5.7.0. Adds `values(deque, start, end)`, returning the `[start, end)` slice of the queue as an array. Out-of-bound `start`/`end` are clamped to the queue length, mirroring the paginated `values` accessor in `EnumerableSet`.
946d4f1 to
de2ea2f
Compare
|
Done. The |
Summary
Ports OpenZeppelin/openzeppelin-contracts#6522 from openzeppelin-contracts 5.7.0.
Adds
values(deque, start, end), returning the[start, end)slice of the queue as an array. Out-of-boundstart/endare clamped to the queue length, mirroring the paginatedvaluesaccessor inEnumerableSet.