Defun is now an alias for defn
This commit is contained in:
parent
73695881a9
commit
f8be07b643
@ -27,6 +27,7 @@ from hy.models.list import HyList
|
|||||||
|
|
||||||
|
|
||||||
@macro("defn")
|
@macro("defn")
|
||||||
|
@macro("defun")
|
||||||
def defn_macro(tree):
|
def defn_macro(tree):
|
||||||
return HyExpression([HySymbol("def"),
|
return HyExpression([HySymbol("def"),
|
||||||
tree[1], HyExpression([HySymbol("fn")] + tree[2:])])
|
tree[1], HyExpression([HySymbol("fn")] + tree[2:])])
|
||||||
|
Loading…
Reference in New Issue
Block a user