[xquery-talk] set as datatype in xquery

Adam Retter adam.retter at googlemail.com
Sun Jul 19 03:01:50 PDT 2015


Can you tell me how you see a dataSet being different to an array?

On 19 July 2015 at 10:27, Rob Stapper <r.stapper at lijbrandt.nl> wrote:

> Hello,
>
>
>
> Is it an option to add a “dataSet” as datatype in xquery, like for example
> the “array”?
>
> My case is that I’m having this high-order function that iterates through
> a sequence and start a given function on each item until it receives back
> an ‘nothing’, than it breaks off.
>
> This works great except with sequences which I ( have to) use for
> “dataSets”: there are occasions that I need to return an empty set without
> breaking of the iteration.
>
> In xquery there are empty arrays, empty maps and empty elements but no
> empty “dataset”, like - set {} -
>
>
>
> Thanx,
>
>
>
> Rob Stapper
>
>
>
> PS.
>
> - definition for “dataset” could be something like: - a datatype
> representing a dynamic collection of data-items –.
>
>
>
> - Since the “dataSet” is an datatype, “dataSets” could hold other dataSets.
>
> - Function “for-each” (  no particular sequence) could take a “dataset”
> but “fold-left” and “fold-right” ( particular sequence) could not.
>
> - I don’t know if a “fold”-function ( no particular sequence) would make
> sense, haven’t thought about it enough.
>
>
>
>
> ------------------------------
>   [image: Avast logo] <https://www.avast.com/antivirus>
>
> Dit e-mailbericht is gecontroleerd op virussen met Avast
> antivirussoftware.
> www.avast.com <https://www.avast.com/antivirus>
>
>
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk
>



-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20150719/35bfac27/attachment.html>


More information about the talk mailing list