given the following:
(set 'l '( 1 2 3 4 5 6 7 8))
;; I'd like to process 'l two elements at a time:
;; which is more efficient?
;; 1)
Code: Select all
(dolist (x (explode l 2)) (code-here x))
Code: Select all
(set 'l1 (explode l 2))
(dolist (x l1) (code-here x)
;; Also, any links to similar topics regarding loop
;; optimization would be warmly welcomed
Cheers
Tim