Quantcast
Channel: Linux.org.ru: Форум (тех. форум)
Viewing all articles
Browse latest Browse all 74683

cl-defmacro, rest и key

$
0
0

(cl-defmacro test (x &rest y &key z)
`(list ,x ,y ,@z))

(test «+» "-" «*»)

Ожидаю получить: + nil - *
Но получаю ошибку: cond: Keyword argument - not one of (:y)
Как поправить?

 


Viewing all articles
Browse latest Browse all 74683

Latest Images

Trending Articles