Anonymous user
Nested function: Difference between revisions
m
→{{header|REXX}}: user the function name suggest by the task.
m (→{{header|REXX}}: simplified the code.) |
m (→{{header|REXX}}: user the function name suggest by the task.) |
||
Line 1,150:
<lang rexx>/*REXX program demonstrates that functions can be nested (an outer and inner function).*/
ctr= 0 /*initialize the CTR REXX variable.*/
call
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
makeItem: parse arg sep,text; ctr= ctr + 1 /*bump the counter variable. */
say ctr || sep word(
return
/*──────────────────────────────────────────────────────────────────────────────────────*/
return</lang>
{{out|output|text= when using the default input:}}
|