2016-12-05 22:15:40 +01:00
|
|
|
/*REXX program demonstrates interactive programming by using a function [F]. */
|
|
|
|
|
say '══════════════════ enter the function F with three comma-separated arguments:'
|
2013-04-10 21:29:02 -07:00
|
|
|
parse pull funky
|
2016-12-05 22:15:40 +01:00
|
|
|
interpret 'SAY' funky
|
|
|
|
|
exit /*stick a fork in it, we're all done. */
|
|
|
|
|
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
|
|
|
|
f: return arg(1) || copies(arg(3),2) || arg(2) /*return the required string to invoker*/
|