Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
9
Task/Metaprogramming/Python/metaprogramming-1.py
Normal file
9
Task/Metaprogramming/Python/metaprogramming-1.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from macropy.core.macros import *
|
||||
from macropy.core.quotes import macros, q, ast, u
|
||||
|
||||
macros = Macros()
|
||||
|
||||
@macros.expr
|
||||
def expand(tree, **kw):
|
||||
addition = 10
|
||||
return q[lambda x: x * ast[tree] + u[addition]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue