On Mon, Aug 15, 2011 at 5:08 AM, Kim Kuen Tang <[email protected]> wrote: > Are verbs ( dyad or monad) first-class citizen in j?
The answer to this is "no" in the same sense that objects are not first-class citizens in any object oriented language. > Is it possible to forward a verb to another verb? Yes. > Is it possible to box a verb into list ? Yes. > Is it possible to have a dictionary like the case in kdb? Something > like : (`a`b`c)!(1 2 3) Yes, but not exactly. Typically, in J, locales are used for this purpose. But locales are not values and can only be referred to (by name). You would have to implement a replacement for this use of ! as a user defined verb. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
