Package: alexandria

Function featurep

Lambda List

featurep (feature-expression)

Arguments

feature-expression -- an atom or a list of atoms

Return Value

a boolean

Details

Returns t if the argument feature-expression matches the state of the *features* list and nil if it does not. The argument feature-expression can be any atom or list acceptable to the reader macros #+ and #-.

Examples

 (featurep :sbcl) => T
 (featurep (and :linux :sbcl :windows)) => NIL
 (featurep (or :linux :sbcl :windows)) => T    
2012-12-9