I am cleaning up some (Chicken) scheme code and I want to identify all lists/procedures not used in a given program. Is there a specific option to pass either to the Chicken compiler or to csi -s
I can use to do so without listing out each define
and grep
-ing for the identifiers in the *.scm
scripts?
How to find unused lists/procedures in scheme?
121 views Asked by xuinkrbin. At
3
you could use the repl function from eval unit and pass to that an evaluator function that keeps track of the symbol if it is a list or a lambda before calling eval on the argument.