The fact-index function returns the fact-index (an integer) of a fact-address.
Syntax
(fact-index <fact-address>)
Example
(defrule print-fact-indices ?f <- ($?) => (printout t (fact-index ?f) crlf))