negate?

Categories: Type procedures , Higher-order procedures

Documentation

;;; (negate? proc) -> procedure?
;;;   proc : procedure?
;;; Returns a procedure that returns the negation of `proc`. That is,
;;; returns a procedure that returns `not` of the result of `proc`.

Examples

Forthcoming.

Sample implementation

(define negate?
  (lambda (proc)
    (lambda vals
      (not (apply proc vals)))))

Tests

Forthcoming.

See also

Forthcoming.

Questions

Forthcoming.