2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,7 +1,6 @@
|
|||
/*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.*/
|
||||
/*REXX program demonstrates 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 all done. */
|
||||
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
||||
f: return arg(1) || copies(arg(3),2) || arg(2) /*return the required string to invoker*/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*REXX program to show interactive programming by using a function [F]. */
|
||||
say '══════════════════ enter the function F with three arguments:'
|
||||
/*REXX program demonstrates interactive programming by using a function [F]. */
|
||||
say '══════════════════ enter the function F with three comma-separated 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.*/
|
||||
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*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue