chickadee » generics » define-generic

(define-generic (Name (x x??) ....) body ....)syntax
(define-generic (Name (x x??) ... xs xs??) body ....)syntax

defines a new generic function Name with one anonymous method from arguments x .... or x ... . xs, selectors x?? .... or x?? ... xs?? and body .... The state of this generic consists of a cell containing a one-item method tree. This state can be accessed by calling Name as a thunk