Hello, I have a simple question, how do I sort a list of the following structure based on the exp field:
heres my attempt at sorting
I realize the above code wont work but I dont know how else to approach it, I really hope I can avoid writing a custom function for this
(defstruct term coef exp)
heres my attempt at sorting
(sort (list (make-term :coef 3 :exp 4)(make-term :coef 3 :exp 5)) #'<)
I realize the above code wont work but I dont know how else to approach it, I really hope I can avoid writing a custom function for this