On 1 February 2014 00:13, Misztur, Chris <[email protected]> wrote: > So can I ever get at $seq[3][2]() ? > > (1,2,(function(),function()),5,6) >
For something like that, your best bet would be Arrays which are coming in XQuery 3.1 (most likely). For the time being you could use maps of sequences, or there are tricks you can do with sequences of functions and even maps of functions, or if you really want fun, then just functions of functions of functions of... However if you don't want to loose your mind and you can get away with it, then I would just create an XML representation of an array, and a module of functions to manage update, insert, delete etc. -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk _______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
