Olivier - I notice you apply your solution, using &> to each item of your (simple=unenclosed) input and return a single scalar for each scalar input. It occurs to me that your definition could be more descriptive if you made its scalar orientation explicit. That is, you could change the first line of your definition to read
tricnt =: 3 : 0"0 so that you could apply it more simply, e.g. tricnt 54+i.6 The above definition form is also helpful to those of us reading your code by alerting us that you expect a scalar input. Regards, Devon On Sat, Jun 1, 2013 at 8:13 AM, Aai <[email protected]> wrote: > > On 01-06-13 14:05, Olivier N. wrote: > >> How strange! I just remarked that our two solutions, >> mine with "zmax<-:peri" and yours with "zmax<:-:peri", >> lead to the same sequence with just a three step offset! >> >> http://oeis.org/A005044 >>> >> > > Yes, see my mail: http://jsoftware.com/**pipermail/programming/2013-** > May/032766.html<http://jsoftware.com/pipermail/programming/2013-May/032766.html> > > > -- > Met vriendelijke groet, > @@i = Arie Groeneveld > > ------------------------------**------------------------------**---------- > For information about J forums see > http://www.jsoftware.com/**forums.htm<http://www.jsoftware.com/forums.htm> > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
