So, I can do this (using cl):
(loop for x in my-list
for y in my-other-list
if (> x y) return t
if (< x y) return nil)
But I really feel like this should be as easy as (list> my-list my-other-list)
But I can find absolutely no evidence that this function exists by any name. In fact, I can't even find any general documentation for comparing lists at all. This makes me feel like I must be missing something.
Do I have do define (list>)
myself, or have I missed great swaths of documentation in my haste and confusion?
And if I have to define it myself, can you do a better job? I'm not really an elisp hacker.
How about this:
(require 'cl)
(every '> my-list my-other-list)
The closest Elisp provides is probably version-list-<
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With