On Mon, Aug 24, 2009 at 5:57 PM, Kip Murray<[email protected]> wrote:
> This puzzle has two parts (a) what is the error in verb r, and (b) how do you
> fix it?  I have an answer for the fix, but there may be better ones.
>    r =: (d"_ {~ ] |~ [: # d"_)"0

As stated, r would be better defined as:
   r=: (#d)&| { d"_

However,
> NB. Hint. See what happens when you do
>
>    ]d =: d , 'kty',:'mew'

you apparently wanted r to look up the current value
of the name 'd', which suggests r should be something
like:
   r=:". bind 'd' ([ {~ #...@[ | ]) ]

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

Reply via email to