Nested function: Difference between revisions

m
→‎{{header|REXX}}: changed inner function name.
m (→‎{{header|REXX}}: user the function name suggest by the task.)
m (→‎{{header|REXX}}: changed inner function name.)
Line 1,153:
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
makeItemMakeItem: parse arg sep,text; ctr= ctr + 1 /*bump the counter variable. */
say ctr || sep word($, ctr) /*display three thingys ───► terminal. */
return
Line 1,159:
MakeList: parse arg sep; $= 'first second third' /*obtain an argument; define a string.*/
do while ctr<3 /*keep truckin' until finished. */
call makeItemMakeItem sep, $ /*invoke the makeItem MakeItem function. function. */
end /*while*/
return</lang>