This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1,4 @@
/*REXX*/ parse arg a b c
say f(a,b,c)
exit
f:return arg(1)arg(3)arg(3)arg(2)

View file

@ -0,0 +1,7 @@
/*REXX program to show interactive programming by using a function [F]. */
say f('Rosetta', "Code", ':')
say f('The definition of a trivial program is '," one that has no bugs.",'')
exit /*stick a fork in it, we're done.*/
/*──────────────────────────────────F subroutine────────────────────────*/
f: return arg(1) || copies(arg(3),2) || arg(2) /*return required str.*/

View file

@ -0,0 +1,7 @@
/*REXX program to show interactive programming by using a function [F]. */
say ' enter the function F with three arguments:'
parse pull funky
interpret 'SAY' funky
exit /*stick a fork in it, we're done.*/
/*──────────────────────────────────F subroutine────────────────────────*/
f: return arg(1) || copies(arg(3),2) || arg(2) /*return required str.*/