Python with a Lissp. https://hissp.rtfd.io Ask, don't ask to ask. Answers may take a day. https://github.com/gilch/hebigo
'(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
(define apply
(lambda (f : :* args)
(f : :* (getitem args (slice -1))
:* (getitem args -1))))
'quote'
string in that process.
quote
forms.
%#(+ : :* %)
if the function is fixed.
;;;; COLLECTIONS
section.
[\"a\",\"b\"]
also works, but single quotes are easier.
(list '("a" "b"))
to also work, but that has to compile the quotes in to distinguish them from identifiers, resulting in ["('a')", "('b')"]
.
(list `(,"a" ,"b"))
.