On Wed, Feb 27, 2008 at 2:35 AM, Robert Raschke <[EMAIL PROTECTED]> wrote:
>  /. is an adverb, not a verb.

how about this:

v: a function that will return random numbers to 10
  v=: 3 : '?y=.10'        NB. i know there exists a better expression
than this one

then how about an adverb ^:: that would allow summing a verb?

  + ^:: v

so lets say, in the simplest case, that ^::  continues to get items
from the verb until 0.  so if 5 successive evaluations of v resulted
in 1 2 3 4 0 , the result of the above expression is 10.  obviously
simplistic, but it should work, shouldn't it?  forget lazy evaluation
-- just add another adverb (because, now, i'm obviously the expert on
adverbs, like  /.   say :)

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

Reply via email to