For predicates I usually use lambda functions. For example:
(require 'cl)
(remove-if (lambda (x) (> x 2))
'(1 2 3 4))I'm not a lisp guru, therefore I often wonder if there are standard binder functions in emacs lisp like for example bind2nd in C++ STL which transforms a binary function into an unary function:
find_if(L.begin(), L.end(), bind2nd(greater<int>(), 2)) // C++
So that I can write something like this:
(remove-if (bind-second '< 2)
'(1 2 3 4))
_______________________________________________
Help-gnu-emacs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
