---Geoff Canyon wrote:
> Some programming languages have built-in commands that give the
> integers from x to y. I thought that would be a nice thing to have in
> J, so I wrote this:
>
> f =: [+i.@(0&>[EMAIL PROTECTED])~
>
> Is that a reasonable way to go about it?


Another option:
h=: <. + ([EMAIL PROTECTED])

   7 h 13
7 8 9 10 11 12
   15 h 7
14 13 12 11 10 9 8 7
   7 h 7

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to