Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Metaprogramming/Arturo/metaprogramming-1.arturo
Normal file
9
Task/Metaprogramming/Arturo/metaprogramming-1.arturo
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
sumThemUp: function [x,y][
|
||||
x+y
|
||||
]
|
||||
|
||||
alias.infix '--> 'sumThemUp
|
||||
|
||||
do [
|
||||
print 3 --> 4
|
||||
]
|
||||
2
Task/Metaprogramming/Arturo/metaprogramming-2.arturo
Normal file
2
Task/Metaprogramming/Arturo/metaprogramming-2.arturo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
code: "print 123"
|
||||
do code
|
||||
8
Task/Metaprogramming/Arturo/metaprogramming-3.arturo
Normal file
8
Task/Metaprogramming/Arturo/metaprogramming-3.arturo
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
myvar: "iAmAVariable"
|
||||
|
||||
let myvar 2
|
||||
|
||||
print myvar ; print the name of the variable
|
||||
|
||||
print var myvar ; print the value of the variable
|
||||
print iAmAVariable ; the same
|
||||
9
Task/Metaprogramming/Arturo/metaprogramming-4.arturo
Normal file
9
Task/Metaprogramming/Arturo/metaprogramming-4.arturo
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
block: [print]
|
||||
block: block ++ to :integer "34"
|
||||
|
||||
print "Here is our code:"
|
||||
print as.code block
|
||||
|
||||
print ""
|
||||
print "And here's its result:"
|
||||
do block
|
||||
Loading…
Add table
Add a link
Reference in a new issue