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

Reply via email to