Google Groups

Finding the arity of a function

Mathew Sanders Sep 17, 2001 11:37 PM
Posted in group: comp.lang.lisp
Hi, I'm writing a genetic algorithm, at the moment I'm supplying the
function names that can be used and the functions arity to the
algorithm so that the GA can know how many arguments the function
needs when a random programme is being generated.

However I'd much rather have that happen automatically.

Does anyone know of a function in lisp that given another function
returns the arity?

Any help would be gratefully appreciated,

thanks, Matt Sanders