For my_list and my_append solutions:
(defun my_list (&rest arguments)
`(,@arguments)
)
(defun my_append (a_list an_item)
`(,@a_list ,an_item)
)
(my_append (my_list 'a 'b 'c) 'd)
I am probably mistaken, but I do not know an alternative method of creating pairs, so an alternative to the minuses is not possible. However, I am completely new to the LISP world.
source
share