[EMAIL PROTECTED] writes: > On Sat, Jul 22, 2006 at 11:19:28AM -0500, Jon Wilson wrote: >> Hi, >> Is there a good way to determine the number of arguments that a given >> procedure will take? > > Here's a fishing rod ;-) > > | [EMAIL PROTECTED]:~$ guile > | guile> (apropos "arity") > | (ice-9 session): arity #<procedure arity (obj)> > | guile> (arity apropos) > | 1 or more arguments: `rgx', the rest in `options'. > | guile>
And if you're not keen on parsing arity's output, see its definition in (ice-9 session) for the procedure properties that it queries to produce this. >> Also, on an unrelated note, is it possible to define values (as in (lambda >> () (values 1 2)) ) in terms of McCarthy's original seven lisp primitives? >> Or would this question be better asked somewhere else (like c.l.scheme)? Yes, sounds to me like a question for c.l.scheme. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user