Subject: Re: Passing through multiple parameters
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 20 May 2006 22:45:02 -0500
Newsgroups: comp.lang.lisp
Message-ID: <AKidnSFgiuGjf_LZnZ2dnUVZ_sydnZ2d@speakeasy.net>
Foxpointe  <foxpointe@comcast.net> wrote:
+---------------
| ...is there a more efficient way to do the following without needing 
| first/second/third/etc:
| (let ((ssparms `("want second item" 5 11)))
|    (subseq (first ssparms) (second ssparms) (third ssparms)))
+---------------

Not sure about "more efficient" [that will depend on the specific
implementation, whether your code's compiled, etc.], but a more
idiomatic [and simpler] way, yes:

    (destructuring-bind (string start end)
	`("want second item" 5 11)
      (subseq string start end))


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607