[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Processing based on number - alternatives to recu

Subject: Re: Processing based on number - alternatives to recursion?
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Tue, 04 Mar 2008 19:24:20 +0100
Re:  Processing based on number - alternatives to  recu
David Carlisle schrieb:

[insightful, exhaustive explanation]

Thanks a lot for your answer! No further questions. (Not for the moment,
that is.)

[tail recursion]

then the intermediate results are built up in the parameter list and
so you don't need to preserve the function call stack you can just
reuse the same space at each iteration (in otherwords it's essentially
a loop).

It's interesting that you can think of a loop as of a recursive function call that doesn't have to remember where it came from because it doesn't have to go back.

Michael

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.