mes: Add negate.

* module/mes/scm.mes (negate): New function.
This commit is contained in:
Jan Nieuwenhuizen 2017-05-21 12:33:16 +02:00
parent 45ce77df85
commit 11311bcaa7

View file

@ -355,3 +355,7 @@
(let ((y (car rest)))
(let ((z (if (< x y) x y)))
(apply min (cons z (cdr rest)))))))
(define (negate proc)
(lambda args
(not (apply proc args))))