Python with a Lissp. https://hissp.rtfd.io Ask, don't ask to ask. Answers may take a day. https://github.com/gilch/hebigo
gilch on docs-pass
gilch on master
doc fix: keyword -> control word Fix indent Remove low-value parenthetical and 4 more (compare)
gilch on docs-pass
Fix install URL Use better example Fix pip install from git repo … (compare)
gilch on docs-pass
Fix pip install from git repo … (compare)
gilch on docs-pass
doc fix: keyword -> control word Fix indent Remove low-value parenthetical and 3 more (compare)
(defmacro apply (f : :* args)
`(operator..add '(,f) ,@args))
def apply(callable, args=(), kwargs={}):
return callable(*args, **kwargs)
apply
is normally a function as I demonstrated in the Python def
above.
'(1 2)
means it's quoted twice.
(apply + (1 2))
, then you wouldn't have to strip the quote.
(defmacro apply* (f xs)
`(apply ,f ,xs))
(define apply
(lambda (callable : args () kwargs {})
(callable : :* args :** kwargs)))
HyExpression
type.
apply
can work the same way at least