Jose, You said: You might be interested to know that 13 : '...' occasionally is too smart; some verbs, such as ?, which do not always produce the same result given the same argument, sometimes do not mix well with 13 : '...'; for example,
Something is not wrong when verbs with ? don't agree. I would worry is they did agree. They areproducing different results each time they are used. Linda -----Original Message----- From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of Jose Mario Quintana Sent: Tuesday, October 16, 2018 7:37 PM To: Programming forum <programm...@jsoftware.com> Subject: Re: [Jprogramming] Using rank to avoid looping - reference? Linda, If you want a one-liner ... such that 13 : '...' would reproduce [: <"2 ({~ [: \:"1~ |. $ [: ?.~ */)~ [: <"2 ({~ ([: \:"1~ |. $ [: ?.~ */))~ then you can work backward starting with 13 : 'x ([: <"2 ({~ ([: \:"1~ |. $ [: ?.~ */))~) y' [: <"2 ({~ ([: \:"1~ |. $ [: ?.~ */))~ followed by, 13 : '<"2 y ({~ ([: \:"1~ |. $ [: ?.~ */)) x' [: <"2 ({~ ([: \:"1~ |. $ [: ?.~ */))~ However, the next step produces a different form of the verb, 13 : '<"2 (([: \:"1~ |. $ [: ?.~ */)x) { y' [: <"2 ] {~ [: ([: \:"1~ |. $ [: ?.~ */) [ because 13 : '...' is smart but not smart enough. You could continue as, 13 : '<"2 (\:"1~ (|.x) $ ?.~ */x) { y' [: <"2 ] {~ [: \:"1~ ([: |. [) $ [: ?.~ [: */ [ but the tacit verb produced might disappoint you, You might be interested to know that 13 : '...' occasionally is too smart; some verbs, such as ?, which do not always produce the same result given the same argument, sometimes do not mix well with 13 : '...'; for example, ( u=. 3 : ' T + (T=. ? y)' ) 3 : ' T + (T=. ? y)' and ( v=. 13 : ' T + (T=. ? y)' ) ? + ? do not mean the same process. I hope it helps On Tue, Oct 16, 2018 at 4:23 PM Linda Alvord <lindaalvor...@outlook.com> wrote: > It may have lots of caps when you display it. I don't think 13 : > allows caps in the definition.. > > Linda > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message -------- > From: Raul Miller <rauldmil...@gmail.com> > Date: 10/16/18 1:28 PM (GMT-05:00) > To: Programming forum <programm...@jsoftware.com> > Subject: Re: [Jprogramming] Using rank to avoid looping - reference? > > I'm not quite sure what you have said here (which, sadly for me, is > not that all that uncommon of an experience). > > Are you saying that you want an explicit definition for h (without any > use of [:) such that 13 : gives a tacit definition? > > Thanks, > > -- > Raul > > ---------------------------------------------------------------------- For information about J forums see https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=02%7C01%7C%7C110125ffee724f00aa9508d633c06349%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636753298719227552&sdata=Rhxe4QjGlk9pxzhx15ocoUvsVmsC2ypxhEqsbvHurmk%3D&reserved=0 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm