Re: dividing lists



rich wrote:

can anybody help m ewith dividing the given list into 3 parts as :
the list i have is
(1 3 4 5 0 6 A 2 4 7 8)
I have to divide this in 3 list as (1 3 4 5 0 6) (A) (2 4 78)
i.e lists to the left and right of symbol A

(let ((list '(1 3 4 5 0 6 A 2 4 7 8)))
(values (subseq list 0 6)
(subseq list 6 7)
(subseq list 7)))

--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.