Chris, If really needed, some of us already coded containers mimicking arrays with XQUERY3.0 (i.e. they would answer 7 to your question). The bad point is that, would you need them for intensive computing, then I would advise to wait XQUERY 3.1, because these containers suffers from performance issues for algebraic operations, an inherent problem to XQUERY 3.0.
Hope this helps 2014-02-01 Adam Retter <[email protected]>: > 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 >
_______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
