2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,6 @@
|
|||
on task_with_x(pgrm, x1, x2)
|
||||
local rslt1, rslt2
|
||||
set rslt1 to run script pgrm with parameters {x1}
|
||||
set rslt2 to run script pgrm with parameters {x2}
|
||||
rslt2 - rslt1
|
||||
end task_with_x
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
set pgrm_with_x to "
|
||||
on run {x}
|
||||
2^x
|
||||
end"
|
||||
|
||||
task_with_x(pgrm_with_x, 3, 5)
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
sub eval_with_x($code, *@x) { [R-] @x.map: -> \x { eval $code } }
|
||||
use MONKEY-SEE-NO-EVAL;
|
||||
sub eval_with_x($code, *@x) { [R-] @x.map: -> \x { EVAL $code } }
|
||||
|
||||
say eval_with_x('3 * x', 5, 10); # Says "15".
|
||||
say eval_with_x('3 * x', 5, 10, 50); # Says "135".
|
||||
say eval_with_x('3 * x', 5, 10, 50); # Says "105".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue