On Mon, Sep 20, 2010 at 4:06 PM, david alis <david.a...@gmail.com> wrote:
> Raul Miller wrote on Mon Sep 20 01:01:24 HKT 2010
>> eraseLocale=: 3 : 0
>> (y)=:1
>>  erase y
>> )
>
> If I change =: to =. then the verb doesn't work.
> Why is that?

Because =. assigns local names, rather than locale names.

> If a name is repeated as in
>   eraseLocale 'data data'
> then 'data' is deleted in two locales.

Yes.

Here is how you can prevent that:
   erase~.;:y

And, you should probably suppress the result from erase.
   (y)=:1
   erase~.;:y
   i.0 0

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

Reply via email to