Subject: Re: [xsl] XSLT repetition constructs From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 7 Mar 2019 13:27:46 -0000 |
A good simple use case for fold-left() is to accumulate a running total, i.e. turn (1,2,3,4) into (1,3,6,10).
fold-left( B (1 to 4), B (), B function ($a, $b) {B $a, if (empty($a)) then $b else $b + $a[last()] } )
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT repetition construct, Dimitre Novatchev dn | Thread | Re: [xsl] XSLT repetition construct, Dimitre Novatchev dn |
Re: [xsl] XSLT repetition construct, Peter Flynn peter@xx | Date | Re: [xsl] XSLT repetition construct, Dimitre Novatchev dn |
Month |