<div dir="ltr">Can you tell me how you see a dataSet being different to an array?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2015 at 10:27, Rob Stapper <span dir="ltr"><<a href="mailto:r.stapper@lijbrandt.nl" target="_blank">r.stapper@lijbrandt.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="NL"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-US">Is it an option to add a “dataSet” as datatype in xquery, like for example the “array”?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">In xquery there are empty arrays, empty maps and empty elements but no empty “dataset”, like - set {} -<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanx,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Rob Stapper<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">PS.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">- definition for “dataset” could be something like: - a datatype representing a dynamic collection of data-items –.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">- Since the “dataSet” is an datatype, “dataSets” could hold other dataSets.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">- Function “for-each” (  no particular sequence) could take a “dataset” but “fold-left” and “fold-right” ( particular sequence) could not.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">- I don’t know if a “fold”-function ( no particular sequence) would make sense, haven’t thought about it enough.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div>
<br><br>
<hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
        <tbody><tr>
                <td style="border:none;padding:0px 15px 0px 8px">
                        <a href="https://www.avast.com/antivirus" target="_blank">
                                <img src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" border="0">
                        </a>
                </td>
                <td>
                        <p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
                                Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
                                <br><a href="https://www.avast.com/antivirus" target="_blank">www.avast.com</a>
                        </p>
                </td>
        </tr>
</tbody></table>
<br>
</div><br>_______________________________________________<br>
<a href="mailto:talk@x-query.com">talk@x-query.com</a><br>
<a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/listinfo/talk</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Adam Retter<br><br>skype: adam.retter<br>tweet: adamretter<br><a href="http://www.adamretter.org.uk" target="_blank">http://www.adamretter.org.uk</a></div>
</div>