The data-structures tag has no wiki summary.
6
votes
2answers
198 views
Emulate a “tuple” data structure (when you are free to choose the syntax)
How can a "tuple" data structure be implemented in LaTeX? The idea is to store several elements (possibly a predefined number) in one macro and then be able to extract each of these elements by index ...
6
votes
3answers
214 views
Emulate a “tuple” data structure when the syntax for creating a tuple is predefined and cannot be altered
Imagine I have a macro \createcontact that accepts three parameters. Now, instead of using these during the expansion, I would like to save them separately for later use and retrieval. The above macro ...
4
votes
2answers
274 views
Global key-value dictionary
Is there any package that implements a data structure that provides a key-value mapping (akin to Python's dict)? The keys will be user input and may contain spaces and non-ASCII characters. I would ...