NagyMusic Posted November 24, 2020 Share Posted November 24, 2020 I wonder if anyone has a suggestion on producing this list (with sublists) in Opusmodus, in which the first number decreases in value, the second number stays the same, and the third number increases in value? Thank you! ( (7) (3) (6) (3) (1) (5) (3) (2) (4) (3) (3) (3) (3) (4) (2) (3) (5) (1) (3) (6) (3) (7) ) Quote Link to comment Share on other sites More sharing options...
opmo Posted November 25, 2020 Share Posted November 25, 2020 make 3 lists and mix them NagyMusic 1 Quote Link to comment Share on other sites More sharing options...
o_e Posted November 25, 2020 Share Posted November 25, 2020 like this..? (setf one (gen-integer 7 1)) (setf two (gen-repeat (length one) '(3))) (setf three (reverse one)) (mapcar #'(lambda (x y z) (list x y z)) one two three) hth Quote Link to comment Share on other sites More sharing options...
NagyMusic Posted November 25, 2020 Author Share Posted November 25, 2020 Thank you! Yes, that's what I was looking for. I appreciated the opportunity to learn how to set up a more automated process to produce lists. Quote Link to comment Share on other sites More sharing options...
AM Posted November 25, 2020 Share Posted November 25, 2020 or... (loop for x from 7 downto 1 for y from 1 to 7 collect (list x 3 y)) opmo and NagyMusic 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.