cartesian-product-switch

API Reference

cartesian-product-switch

CARTESIAN-PRODUCT-SWITCH is a macro for choosing the appropriate form to execute according to the combined results of multiple tests. This is a straightforward and efficient alternative to the convoluted ad-hoc conditionals one might otherwise resort to.

CARTESIAN-PRODUCT-SWITCH

  • Generic-Function NAME (object)
  • Generic-Function LAMBDA-LIST (object)
  • Generic-Function EXPANDER (object)
  • Class INFO
    No slots.
  • Class STANDARD-INFO  (INFO)
    %NAME   Reader: NAME
    %LAMBDA-LIST   Reader: LAMBDA-LIST
    %EXPANDER   Reader: EXPANDER
  • Function LOCATE (testclause-name &key (errorp t))
  • Function EXPAND (testclause &optional env)
  • Function ENSURE (name lambda-list expander &rest keys &key (class 'standard-info) &allow-other-keys)
  • Macro DEFINE (name macro-lambda-list &body body)
  • Macro CARTESIAN-PRODUCT-SWITCH ((&rest testclauses) &body clauses &environment env)