On 6/14/07, Richard Donovan <[EMAIL PROTECTED]> wrote:
  f2=:  3 :'+/ x ^ i.y'  NB. Same (?) verb using explicit instead of tacit
...
  3 f2 4      NB. Expect (3^0) + (3^1) + (3^2) + (3^3) = 40
|domain error: f2
|   3     f2 4

3: 'string' defines a monad -- the domain of the dyad of
this verb is empty.

You should use either
  4 :'string'
or something like
  3 :(':';'string')

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

Reply via email to