A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
@ -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.*/
|
||||
|
|
@ -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.*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue