|
|||||
|
| MWForum Message | [Date Index] [Threads] [Authors] [Attachments] [Subscribe] | ||||||||
Hi Kate, A recursive procedure invariably requires some prior setup. For example: to GETREADY make "them [12 2 43 17 64 128] ;;the material to be processed make "these [] ;;the repository of the processing end then, something like this: to ADD3 :them if :them = [] [stop] ;;criteria for when to quit make "these lput (first :them) + 3 :these ;;the action done to each element of :them ADD3 bf :them ;;repeatedly calls itself, but without the first element of the preceding recursion. end show :these 15 5 46 20 67 131 And thank you for bringing some common sense to the intellectual property question. --Jeff ----- Original Message ----- From: "Ask an Expert - Question" <askanexpert@xxxxxxxxxxxxxxxxxxxxx> To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, June 17, 2005 1:26 PM Subject: MIA, Ask an Expert: procedure using recursion This is an automatic message sent from the web form at: http://mia.openworldlearning.org/mwforum.htm To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file. | |||||||||