Am Tue, 3 Feb 2009 08:36:25 -0500
schrieb Steve Weeks <[email protected]>:
> Until the stack effect of at* changes, I've been using:
> 
> : at? ( key assoc -- value/key ? ) 2dup key? [ at* ] [ drop f ] if ;
> 

How about:

: at? ( key assoc -- value/key ? ) dupd at* [ nip t ] [ drop f ] if ;

That should be faster, as key? calls at* already once.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to