Raul, I like your monadic seq verb, as it duplicates the Octave function, including the argument sequence. I do find it interesting that a tacit verb requires many more characters than the explicit definition. I usually expect the opposite.
Skip On Thu, Aug 23, 2012 at 1:56 PM, Raul Miller <[email protected]> wrote: > If you are trying to duplicate the Octave mechanism, I would preserve > the relative argument order that Octave uses, in other words one of > these: > seqmonad e,i,s > e seqdyad i,s > (e,i) seqdyad s > e i seqadverb s > > If I expected to frequently be using literal numeric arguments, I > would probably go with the first version. Perhaps: > > seq=: [: +`(*i.)/ _1&}. , 1 <.@+ 1&{ %~ {:-{. > > seq 5 0.25 8 > 5 5.25 5.5 5.75 6 6.25 6.5 6.75 7 7.25 7.5 7.75 8 > > FYI, > > -- > Raul > ---------------------------------------------------------------------- > > -- Skip Cave Cave Consulting LLC ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
