chickadee » procedure-decoration » define-procedure-extender

(define-procedure-extender TAG [GETTER-NAME [PREDICATE-NAME]])syntax

Creates a functional interface for a PROCEDURE-DECORATOR that uses the {{TAG} symbol.

Defines the PROCEDURE-DECORATOR as TAG-decorator.

Defines a procedure named GETTER-NAME that takes one argument, a decorated procedure, and returns the procedure decoration. Creates a corresponding setter. The default GETTER-NAME is TAG-decoration.

Defines a procedure named PREDICATE-NAME that takes one argument, a procedure, and returns whether the procedure is decorated. The default PREDICATE-NAME is TAG-decorated?.