<div dir="ltr"><div><div><div>Sorry if this is a newbie question.<br><br></div>I know someone must have already done this,<br></div><div>and don't want to reinvent the wheel.<br><br></div>I know how to do this in a different language<br></div><div>like Perl, which has very rich data structures for<br></div><div>scalars (strings, integers, floats), lists (arrays of scalars),<br>and hashes (arrays with a string index),  <br>including multi-dimensional ones.... <br><br></div><div>What I want to do is to be able to store and recall<br></div><div>a symbol and also a list given an integer index.<br><br></div><div>Like given index 7 might return "SUS4" and [1 4 5(<br></div><div>and index 9 might return "MAJ7" and [1 3 5 7(. <br><br></div><div>I would be grateful to learn a PD native way of <br></div><div>dealing with data structures like this.  <br><br>Basically looking for <br></div><div>a) multi dimensional arrays (nice, but optional)<br></div><div>b) arrays which contain symbols, lists, or floats<br></div><div>c) persistence <br><br></div><div>Many thanks!<br><br></div><div>Vanilla solutions preferred, <br>but don't limit yourself to that :)<br></div><div><div><div><div><div><br></div><div>BH<br clear="all"></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">--<br>
May you, and all beings<br>
be happy and free from suffering :)<br>
-- ancient Buddhist Prayer (Metta)<br><div><br>Don't forget to sign the <br><font size="4"><b>Pledge to Resist<br></b></font></div><div><font size="4"><b>the Constitution Pipeline:<br></b></font><ul><li><b>The Pledge: <a href="http://TinyURL.com/Pledge2ResistCP" target="_blank">TinyURL.com/Pledge2ResistCP</a></b></li><li><b>More info: <a href="http://TinyURL.com/Pledge2ResistCP1" target="_blank">TinyURL.com/Pledge2ResistCP1</a></b></li></ul></div></div></div>
</div></div></div></div></div></div>