Re: Recursion

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a shorter recursion

constant stuff={"oranges","apples","bananas"}
 procedure hello(object stuff)
   if length(stuff) > 0 then
       puts(1,stuff[1]&"\n")
       hello(stuff[2..$])
   end if
 end procedure
 
 hello(stuff)


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu