Raul suggested:

> GetPrices=:(0 :0)&(4 :0) 

I would warn you away from this pattern if you use or intend to use the J 
debugging facilities.  The dyad within the monad GetPrice is anonymous, and 
consequently atomic from the J debugger's POV; hence undebuggable.

That said, I've found this a useful idiom in many cases.

-Dan

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to