On Mon, Sep 26, 2011 at 4:24 PM, Christopher McIntosh <[email protected]> wrote: > I want to create a new ambivalent verb which combines behaviors from two > existing verbs.
What are the names of those two verbs? How are they used? That said, if you can define a monadic and dyadic verb you can combine them into a single verb which uses the appropriate definition, depending on context: MON=: 1: DYA=: 2: (MON : DYA) 'a' 1 'b' (MON : DYA) 'a' 2 > (1) How can I cause mynl to only report (as does the 4!:1 foreign > conjunction) when x or y is in the current locale? mynl should be defined tacitly -- the problem is that explicit definitions provide their own values for y (and x). > Is there a way for me to know which locale was current when > mynl was invoked? No. Yes. What do you mean? You can find the locale you are executing in (coname will tell you this). This may be what you are looking for, here, but I think it's the wrong approach. > (2) Regarding line [20], isn't this unreachable? Consider what happens when names is passed a literal right argument. That said, I have not thought about this use case and do not know why anyone would want it. > (3) Why am I enjoying my excursion with J so much? LOL I am sorry, but I cannot help you with this one. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
