---Joey wrote:
> Oops, I am sorry for sending this message so soon after, but 
> I just found it out.
>     -(i.4)*]
> Is the verb for me! Unless there are betters ways to do it, 
> but that looks good to me.

Yes or
  verb=: -(i.4)&*

> Are there better or standard ways of getting 100-200 for example.
> I would do:
>     99+i.101
> Or something like that, althought that only gives 100 - 199?

100+i.101

You might be also be interested in the steps verb from numeric.ijs:

NB.*steps v steps from a to b in c steps
NB. form: steps a,b,c
steps=: {. + (1&{ - {.) * (i.@>: % ])@{:

   steps 10 20 10
10 11 12 13 14 15 16 17 18 19 20
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to