[Next] [Previous] [Up] [Top] [Contents] [Index]

Finding symbols

The apropos function

The Common Lisp function apropos takes a symbol or string as its argument and prints out all symbols known to MCL that contain the symbol or string. A package may be supplied as an optional second argument. If supplied, only symbols from the specified package are included in the print-out.

Here is an example of the use of apropos, in which it is used to find every symbol that contains the string FACT. Notice that it brings up some constants as well as the function you're looking for.

?(apropos 'subview)
     ADD-SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION
     DO-SUBVIEWS, Def: MACRO FUNCTION
     MAP-SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION
    :ORDERED-SUBVIEWS,  Value: :ORDERED-SUBVIEWS
CCL::ORDERED-SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION
CCL::REMOVE-ORDERED-SUBVIEW, Def: FUNCTION
     REMOVE-SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION
     SUBVIEW
     SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION
    :VIEW-SUBVIEWS,  Value: :VIEW-SUBVIEWS
     VIEW-SUBVIEWS, Def: STANDARD-GENERIC-FUNCTION


Gettmg Started with MCL - 19 OCT 1996
[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with Harlequin WebMaker