On Fri, Mar 8, 2019 at 3:22 PM Michael Kay mike(_at_)saxonica(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Yes, that's O(n^2), and if an O(n^2) solution is acceptable then you can
do it more simply without a fold() using
$inpValues ! sum(subsequence($inpValues, 1, position()))
Thanks, Mike for insights.
I've updated my online document, with the recent discussions.
--
Regards,
Mukul Gandhi
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--