There are a couple of problems with to =: [ (+ i.) 1 + -~
5 10 to 15 20 |length error: to | 5 10 to 15 20 |[-0] 5 to (0.27 inc) 8 |domain error: to | 5 to(0.27 inc)8 |[-0] inc=: 1 :'&.(%&m)' Is the explicit equivalent (to some extent) to inc=. (%&)(<'&.'`)(`:6) I wrote the second form because the original requested a "tacit form" admittedly referring to a verb but I like to be "tacitus" and in some respect I also would like to be as Tacitus "... and as well as the brevity and compactness of his Latin prose, he is known for his penetrating insights ..." The "unnamed parentheticals" are adverbs forming trains in a typical tacit adverbial programming fashion. Dan Bron wrote a pretty good general explanation: http://www.jsoftware.com/pipermail/programming/2010-November/021172.html On Fri, Aug 24, 2012 at 11:46 AM, Raul Miller <rauldmil...@gmail.com> wrote: > On Fri, Aug 24, 2012 at 11:17 AM, Jose Mario Quintana > <jose.mario.quint...@gmail.com> wrote: >> to=. [ + i.@:>:@:<.@-~ >> >> 5 to 8 >> 5 6 7 8 > ... >> inc=. (%&) ((<'&.'`)(`:6)) >> >> 5 to (0.25 inc) 8 >> 5 5.25 5.5 5.75 6 6.25 6.5 6.75 7 7.25 7.5 7.75 8 > > I like your argument patterns. > > But I am uncomfortable with your definitions (especially the unnamed > parentheticals) -- perhaps because I do not understand them well > enough to reason about them generally? > > Anyways, here's how I might define these words: > > to =: [ (+ i.) 1 + -~ > inc=: 1 :'&.(%&m)' > > Thanks, > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm