Runtime evaluation: Difference between revisions

show argument passing
No edit summary
(show argument passing)
Line 226:
 
=={{header|J}}==
Use the monad [http://www.jsoftware.com/help/dictionary/d601.htm ".] to execute a string.
 
 
http://www.jsoftware.com/help/dictionary/d601.htm
 
<lang J>
". 'a =.: +/ 1 2 3' NB. execute a string to sum 1, 2 and 3 and assign to noun a
</lang>
 
Or, use the conjunction [http://www.jsoftware.com/help/dictionary/d310n.htm :] to create various kinds of functions and evaluate them. Arguments have names which as specified by the language definition. For example:
 
<lang J>(3 : '+/y') 1 2 3</lang>
 
Rules of scope for such functions match those described on the [[Scope modifiers]] page.
 
=={{header|Perl}}==
6,951

edits