Zelphir Kaltstahl <zelphirkaltst...@posteo.de> writes:

> How do you approach this problem? Is it a problem at all?

I would use a deque: a double ended queue. Cheap push and pop at end and
beginning.

https://srfi.schemers.org/srfi-134/srfi-134.html

I created a guile-implementation for that:
https://github.com/scheme-requests-for-implementation/srfi-134/tree/master/contrib/arne-babenhauserheide

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature

Reply via email to