[xquery-talk] Results from previous iterations

David Carlisle davidc at nag.co.uk
Wed Nov 10 00:36:51 PST 2010

On 09/11/2010 23:57, Vyacheslav Zholudev wrote:
> but are there any common patterns to simulate something like this?

well the particular case you describe of course is just the expression
2 to 11, but in general the idiom for passing values in any declarative 
language is to write a recursive function.

declare function local:f ($start,$finish) {
  ($start,if($start<$finish) then local:f($start+1,$finish) else ())


More information about the talk mailing list