Is there a way to extract all elements of a list in place
问题 Im looking for a way to extract all the elements of a list in common lisp. Like this [194]> (break-out-of-list '(a b c d)) A B C D Edit: The usage example I gave was not thought out very well, however I'm still curious if it is possible to break out of a list like in the example above. 回答1: What you demonstrate seems to be the question how to get the elements of a list as multiple values : CL-USER> (values 1 2 3) 1 2 3 CL-USER> (apply #'values '(1 2 3)) 1 2 3 See also multiple-value-bind and