[xquery-talk] Sequences

Adam Retter adam.retter at googlemail.com
Sat Feb 1 06:48:26 PST 2014


On 1 February 2014 00:13, Misztur, Chris <CMisztur at macleanfogg.com> 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


More information about the talk mailing list