Thanks for this tip! I'm fairly new to J and didn't know how to deal with this and I discovered the &> just a few days ago, thanks to Arie.
Could you explain to me how I could've written my verb so it could work with non scalar inputs? Regards, Olivier On 06/01/2013 05:24 PM, Devon McCormick wrote: > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
