|
From: | LanX |
Subject: | Re: Extract sublists |
Date: | Tue, 17 Nov 2009 06:01:55 -0800 (PST) |
User-agent: | G2/1.0 |
searching for (pop) led me to (butlast) ----------------ielm ELISP> (defun splice (LIST OFFSET LENGTH) (butlast (nthcdr OFFSET LIST) (- (length LIST) LENGTH OFFSET) ) ) splice ELISP> (setq list '(a b c d e f g h i j)) (a b c d e f g h i j) ELISP> (splice list 3 4) (d e f g) ------------------
[Prev in Thread] | Current Thread | [Next in Thread] |