In most Lisps numeric comparison functions like
>= are variadic - meaning they accept variable number of arguments (as do functions like
Here’s an example:
;; let's assume that all those are numeric variables (= x y z) (< a b c d)
This is pretty cool and save you from writing code like:
(and (= x y) (= y z)) (and (< a b) (< b c) (< c d))
Prefix function position for the win!
In Emacs Lisp, however, all these comparison functions (unlike
accept just two arguments, which is somewhat unlispy. Luckily this is
one of the things that’s going to change with Emacs 24.4.
Emacs Lisp takes another small step to becoming a good Lisp dialect!