Kowal Posted July 16, 2013 Share Posted July 16, 2013 Hi, I need a arguments function that modify the list. (setq (list (list 1 2 3 4 …) (list 1 1 2 2 …) (list 2 2 3 4 …) …)) Sublists are of the same length Example ‘((1 2 3 4) (6 5 4 3) (3 3 3 3)) Result ‘((1 6 3) (2 5 3) (3 4 3) (4 3 3)) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 16, 2013 Share Posted July 16, 2013 _$ (apply 'mapcar (cons 'list '((1 2 3 4) (6 5 4 3) (3 3 3 3)))) ((1 6 3) (2 5 3) (3 4 3) (4 3 3)) Quote Link to comment Share on other sites More sharing options...
Kowal Posted July 16, 2013 Author Share Posted July 16, 2013 _$ (apply 'mapcar (cons 'list '((1 2 3 4) (6 5 4 3) (3 3 3 3)))) ((1 6 3) (2 5 3) (3 4 3) (4 3 3)) Regards. Kowal 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.
Note: Your post will require moderator approval before it will be visible.