Raul Miller <rauldmiller <at> gmail.com> writes: > > On Mon, Sep 26, 2011 at 4:24 PM, Christopher McIntosh > <thegeeko61 <at> gmail.com> 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? Oh come on! You're playing with me, aren't you??! LOL The famous dysfunctional family: nl_z_ and names_z_ who don't play nice with namelist_z_. LOL
> 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 Yes, this is the area where I want to focus most of my energy. This is what I see as the one factor that sets J apart from Haskell and Scala. Well, there's lots that set it apart from both of those... but from what I have been told, the tacit aspect of J is a premium feature. > > > (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). Ohhhhhh... So that's why the mysterious behavior for nl_z_. > > > 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. Oh? why would it be wrong to approach the issue from the other side of the mirror? Go on... > > > (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. Right... I've tried passing different values to get it to travel this path... I can't seem to force a test case for this use case. > > > (3) Why am I enjoying my excursion with J so much? LOL > > I am sorry, but I cannot help you with this one. > Hahaha... I'm the one who is sorry... because you have already helped in this area more than you must realize! LOL And I am thankful. Thank you. And all the others (within the fora and without)... You know who you are... LOL ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
