Lt Dan's legs Posted September 21, 2010 Posted September 21, 2010 (edited) problem solved typo (vl-sort lst ' Edited September 21, 2010 by Lt Dan's legs Quote
Tharwat Posted September 21, 2010 Posted September 21, 2010 (edited) Your question is not clear . Is this what you mean . (setq elist (list 5 2 4 1 3)) (vl-sort elist '<) ;;;-> Return ;[b][color="red"] (1 2 3 4 5) [/color][/b] Tharwat Edited September 21, 2010 by Tharwat Result of codes added Quote
Lt Dan's legs Posted September 21, 2010 Author Posted September 21, 2010 It was a typo. but not on this part. I thought for sure this was giving me the error Quote
alanjt Posted September 21, 2010 Posted September 21, 2010 Your question is not clear .Is this what you mean . (setq elist (list 5 2 4 1 3)) (vl-sort elist '<) ;;;-> Return ;[b][color=red] (1 2 3 4 5) [/color][/b] Tharwat FYI: (vl-sort '(5 4 2 3 6 7 7 7) '[/b] (2 3 4 5 6 7) Quote
Lee Mac Posted September 21, 2010 Posted September 21, 2010 (defun LM:Unique ( l ) (if l (cons (car l) (LM:Unique (vl-remove (car l) (cdr l))) ) ) ) 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.