samifox Posted July 15, 2015 Posted July 15, 2015 (edited) hi how would you shift items of a list? _$ (setq lst '((0)(1)(2)(3)(4)(5)(6)(7))) ((0)(1)(2)(3)(4)(5)(6)(7))) ((1)(2)(3)(4)(5)(6)(7)(0))) ((2)(3)(4)(5)(6)(7)(0)(1))) ((3)(4)(5)(6)(7)(0)(1)(2))) Edited July 15, 2015 by samifox Quote
rlx Posted July 15, 2015 Posted July 15, 2015 see this link : http://aima.cs.berkeley.edu/lisp/utilities/utilities.lisp Quote
rlx Posted July 15, 2015 Posted July 15, 2015 for example : (setq lst '((0) (1) (2) (3) (4) (5) (6))) (append (cdr lst) (list (car lst))) -> ((1) (2) (3) (4) (5) (6) (0)) (tried to change company browser settings to see if the wrap code works now moderator) gr. Rlx Quote
samifox Posted July 15, 2015 Author Posted July 15, 2015 see this link : http://aima.cs.berkeley.edu/lisp/utilities/utilities.lisp excellent lib! thanks for sharing Quote
Lee Mac Posted July 15, 2015 Posted July 15, 2015 excellent lib! thanks for sharing Be aware that the library is Common LISP, not AutoLISP. Quote
samifox Posted July 16, 2015 Author Posted July 16, 2015 Be aware that the library is Common LISP, not AutoLISP. hi Lee where we can find some of your codes regarding to list manipulation? Quote
tombu Posted July 16, 2015 Posted July 16, 2015 hi Lee where we can find some of your codes regarding to list manipulation? http://www.lee-mac.com/programs.html http://www.lee-mac.com/entitytopointlist.html http://www.lee-mac.com/flatten.html http://www.lee-mac.com/groupbynum.html http://www.lee-mac.com/listbox.html http://www.lee-mac.com/listboxfunctions.html http://www.lee-mac.com/filtlistbox.html http://www.lee-mac.com/listdifference.html http://www.lee-mac.com/listintersection.html http://www.lee-mac.com/listsymdifference.html http://www.lee-mac.com/listtostring.html http://www.lee-mac.com/listunion.html http://www.lee-mac.com/selectionsettolist.html http://www.lee-mac.com/stringtolist.html http://www.lee-mac.com/sublist.html http://www.lee-mac.com/uniqueduplicate.html Quote
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.