Re: dividing lists
- From: Frank Buss <fb@xxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 00:46:17 +0100
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
.
- References:
- dividing lists
- From: rich
- dividing lists
- Prev by Date: Re: Am I abusing SORT? It sure ain't working for me....
- Next by Date: Re: Paging emacs experts? [was Re: cons and list behaviour]
- Previous by thread: dividing lists
- Next by thread: Re: dividing lists
- Index(es):