[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XQuery/XPath 3.1: Node List to Node Set ("distinct
On Wed, 2021-12-29 at 18:34 +0000, Michael Kay mike@xxxxxxxxxxxx wrote: > > As Dimitre says, ($n except $a) where $n is a singleton isn't > immediately intuitive - but intuition takes practice! I'd be tempted to write, function($found-so-far, $new) { ( $found-so-far, if (some $try in $found-so-far satisfies $try is $new) then () else $new ) } mostly because a year from now i'll likely still understand it :) Liam -- Liam Quin,B https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|