Nice catch Linda. I messed up in my original writeup. Sorry.
On Wed, Oct 30, 2013 at 7:44 PM, Linda Alvord <[email protected]>wrote: > Note: > > i: _2 > 2 1 0 _1 _2 > > Lins > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Vijay Lulla > Sent: Wednesday, October 30, 2013 12:02 PM > To: [email protected] > Subject: [Jprogramming] Possible discrepancy in i: description (for monad) > > Dear list, > The page for i: (http://www.jsoftware.com/help/dictionary/dico.htm) lists: > > in general, i: a j. b produces the list of numbers from -a to a in b equal > steps (or in 1+2*a steps if b is 0). > > Shouldn't it be 1+2*|a? For e.g., consider the second example listed on the > page: > > i: _2 yields _2 _1 0 1 2 > > whereas according to the definition it should yield only 3 elements. Also > there is no mention of reversal. > > IMO, the definition of i. does a similar description more precisely. It > also > states that using negative number causes reversal. > > Have I missed something here? If so, please point me in the right > direction. > Thanks, > Vijay. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
