LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cDtQGJ/EJIRf/Cpq"
Date: Tue, 27 Oct 2020 12:48:10 +0100
Content-Disposition: inline
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Jonathan Spratte <[log in to unmask]>
Message-ID: <20201027114810.GJ886940@thinkarch>
MIME-Version: 1.0
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (442 bytes) , signature.asc (832 bytes)
Hi all,

I got two little questions concerning stacks in `expl3`.

1. What is the best way to build a stack for a sequence?

The naive way would be to use something like

    \seq_push:No \l_my_stack_seq \l_my_seq

to push and then

    \seq_pop:NN \l_my_stack_seq \l_my_seq

But this doesn't look like a clean usage of `\seq_pop:NN` and

2. Should there be a higher level interface for stacks of the different
data types in `expl3`?