From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
Cc: guile-user@gnu.org
Subject: Re: Question about data structures
Date: Mon, 23 Nov 2020 13:24:35 +0100 [thread overview]
Message-ID: <878sasfegs.fsf@web.de> (raw)
In-Reply-To: <d8df761e-0f1f-d57d-1180-ab23c928ee82@posteo.de>
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
Zelphir Kaltstahl <zelphirkaltstahl@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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]
prev parent reply other threads:[~2020-11-23 12:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 18:48 Question about data structures Zelphir Kaltstahl
2020-11-22 19:45 ` divoplade
2020-11-22 20:24 ` Zelphir Kaltstahl
2020-11-22 21:00 ` divoplade
2020-11-28 2:47 ` Zelphir Kaltstahl
2020-11-22 20:58 ` kwright
2020-11-22 22:50 ` Tim Van den Langenbergh
2020-11-23 3:42 ` Taylan Kammer
2020-11-23 4:42 ` John Cowan
2020-11-23 14:54 ` [EXT] " Thompson, David
2020-11-23 9:52 ` Neil Jerram
2020-11-23 12:24 ` Dr. Arne Babenhauserheide [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878sasfegs.fsf@web.de \
--to=arne_bab@web.de \
--cc=guile-user@gnu.org \
--cc=zelphirkaltstahl@posteo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).