Re: [xquery-talk] Looping in Xquery

2012-09-04 Thread John Snelson
) .. But atleast i thought i would get something like short-desc100/short-desc short-desc344/short-desc ( I would have liked short-desc444/short-desc ) ANy help would be highly appreciated .. Thanks Dak. -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation

Re: [xquery-talk] map module for XQUERY ?

2013-11-20 Thread John Snelson
this function would be tremendous. Thus, to accept node() as keys for maps, one need first to provide an external ordering predicate for nodes, see point 3) above. -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http

Re: [xquery-talk] map module for XQUERY ?

2013-11-20 Thread John Snelson
it. :-) John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk

Re: [xquery-talk] map module for XQUERY ?

2013-11-21 Thread John Snelson
mailto:jeanmarc.merc...@gmail.com Yes you're right, using fold should be strightfroward. For the remove function, I'll try. Hopefully I won't spent too much time :) I'll keep you posted 2013/11/20 John Snelson john.snel...@marklogic.com mailto:john.snel...@marklogic.com

Re: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side.

2013-11-25 Thread John Snelson
. -Mike ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [xquery-talk] map module for XQUERY ?

2013-12-03 Thread John Snelson
implementation only ever uses sequences of length 4, which will therefore have a constant cost to create (in the size of the red/black tree). John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [xquery-talk] XQuery 3.0 Grouping - Sufficiently baffled by ordering

2014-01-07 Thread John Snelson
-xquery30-FLWORExpr I suspect this is just unimplemented in eXist. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ talk@x-query.com http://x-query.com

Re: [xquery-talk] Tales of the unexpected version III - Atomization

2014-01-08 Thread John Snelson
/xquery-30/#id-content John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk

Re: [xquery-talk] Tales of the unexpected version III - Atomization

2014-01-08 Thread John Snelson
section 2.4.2 where? or was I supposed to have sussed that from seeing * Constructor expressions for various kinds of nodes if I wasI guess it's my bad. On Wed, Jan 8, 2014 at 4:29 PM, John Snelson john.snel...@marklogic.com mailto:john.snel...@marklogic.com wrote: On 08/01/14 16:25

Re: [xquery-talk] Izzit Bcos I is functional?

2015-06-16 Thread John Snelson
one. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk

Re: [xquery-talk] Empty or Null Array?

2015-07-16 Thread John Snelson
. Similarly the CurlyArrayConstructor for a ? on it's Expr so it can be left out. Thus you can also use array{} for an empty array. John -- John Snelson, Lead Engineerhttp://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com

Re: [xquery-talk] Error when using predicate after arrow operator

2017-04-13 Thread John Snelson
"[" beyond end of query > > whereas the pre-XQuery 3.1 approach: > > tokenize("1.2.3", "\.")[. < "3"] > > returns the results I'd expect: > >("1", "2") > > T

Re: [xquery-talk] tail recursive identity transformation

2017-09-15 Thread John Snelson
lt return $node >>> }) >>> }; >>> >>> The idea is that functions that do more than return their input >>> could be based on the function, and benefit from tail call >>> optimization. >>> >>> Kendall >>> >>> >>>

Re: [xquery-talk] Arrow Operator to a Partially Applied Function

2019-03-11 Thread John Snelson
skype: adam.retter tweet: adamretter http://www.adamretter.org.uk ___ talk@x-query.com<mailto:talk@x-query.com> http://x-query.com/mailman/listinfo/talk --- This email has been checked for viruses by AVG. https://www.avg.com ___ talk@x-query.com<mailto:talk@x-query.com> http://x-query.com/mailman/listinfo/talk -- John Snelson, Principal Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk

Re: [xquery-talk] Arrow Operator to a Partially Applied Function

2019-03-11 Thread John Snelson
Ah - it's a precedence problem. Try putting the partial apply in parentheses: function($k, $v) { "$k=" || $k } => (map:for-each( map { "a" : "1", "b" : "2", "c" : "3"