[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing arity

From: tomas
Subject: Re: testing arity
Date: Sun, 23 Jul 2006 05:04:56 +0000
User-agent: Mutt/1.5.9i

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 ;-)

 | address@hidden:~$ guile
 | guile> (apropos "arity")
 | (ice-9 session): arity  #<procedure arity (obj)>
 | guile> (arity apropos)
 | 1 or more arguments: `rgx', the rest in `options'.
 | guile> 

> 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)?

I don't understand exactly what you mean here. There is values and
call-with-values in guile -- but maybe my answer is way off...

-- toms

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]