DUP question
Posted: Tue Sep 19, 2006 10:07 pm
With the DUP function if I write
(dup '(2 3) 3) this is ((2 3)(2 3)(2 3))
but what if I want (2 3 2 3 2 3) ?
I could write (flat (dup '(2 3) 3)) but that is a little cumbersome. Could the DUP function be modified so that I could write (dup 2 3 3) where it is understood that multiple previous arguments are duplicated in order?
(dup '(2 3) 3) this is ((2 3)(2 3)(2 3))
but what if I want (2 3 2 3 2 3) ?
I could write (flat (dup '(2 3) 3)) but that is a little cumbersome. Could the DUP function be modified so that I could write (dup 2 3 3) where it is understood that multiple previous arguments are duplicated in order?