Never have found one. I wrote this to restrict erasing names to only the locale. Triied erasing 'a_base_' to try to keep it from erasing a from the z locale. Didn't work.
Would be nice if 4!:55 had an optional left argument to tell it to restrict the erase to the current locale. I did this to restrict the erase to the current locale: myerase=: 3 : 0 x=. (y=. ;:^:(L.=0:)y)e.4!:1]i.4 4!:55&.(x&#)y ) On Sun, Sep 19, 2010 at 10:02 AM, david alis <david.a...@gmail.com> wrote: > I think this must have come up before but i cant find where. > > Is there a utility erases a name in the current locale? > > The erase foreign 4!:55 descends the locale path and deletes the name as > soon it finds it. > > a_base_=:'in base' > a_z_=:'in z' > a > in base > erase 'a' > 1 > a > in z > erase 'a' > 1 > a > |value error: a > > > NB. same result if 4!:55 is used instead if erase ( erase_z_) > > thanks > David > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm