Actually, ML is just following the spec ... which changed over time. XQuery 3.0 (and xpath func 3.0) spec are still volatile ... depending on which version of ML you are using you will see this 'history'. Eventually XQuery 3.0 (and underlying specs) will turn into a recc ... this is a 'bleeding edge' feature with sharp edges.
I can't make any comments/promises/support about any features in any future version of ML ... but can comment about past ML versions ... the signatures were different as they reflected what they were at the time. hth, Jim Fuller On Wed, Jan 8, 2014 at 9:43 PM, colin mcenearney <[email protected]>wrote: > Hi, > > Looks like Marklogic has the signatures reversed from the w3c for > fold-left and fold-right > > ML: <http://docs.marklogic.com/fn:fold-right> > > fn:fold-right( > $function as function(item(), item()*) as item()*, > $zero as item()*, > $seq as item()* > ) as item()* > > W3C: <http://www.w3.org/TR/xpath-functions-30/#func-fold-right> > > fn:fold-right( > $seq as item()*, > $zero as item()*, > $f as function(item()*, item()) as item()* > ) as item()* > > > I'm wondering if this by design - can anyone comment? > > Best, > Colin > > > > > > > > > > > > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
