Do you know where I can get the predicate source in Common Lisp? (The content of the predicate, if you prefer.) For example, the source code is setq, string =, etc.
Thanks!
Common Lisp development environments typically provide a way to search for definitions in a source file.
Alternatively, FUNCTION-LAMBDA-EXPRESSION can restore the source code of the predicate and other functions if the Lisp environment is configured to save definitions.
FUNCTION-LAMBDA-EXPRESSION
You can also search the open source Lisp files for Lisp. For example, in Clozure CL, setq is defined in the / nx 1.lisp compiler file. The tip is to place a space before the search word to get around matches such as (setq .
setq
(setq
For at least SBCL, SLIME can search for definitions by pressing βM-.β, However you need to compile SBCL from the source for this to work, since the path to the source definitions is built into the binary and if you use a binary distribution, you probably wonβt have the source files in the same place.
SETQ is not a predicate. This is not even a function, so you could not find it through the IDE. STRING = is a predicate and function, so it works better.
Do you mean "primitive"? for the "predicate"?