Raul and Oleg have cleverly created and characterized this approach with the verb year. Neat.
What about expanding it to another widely used
verb, steps?
steps =: {. + (1&{ - {.) * (i.@>: % ])@{:
steps 3 5 10
3 3.2 3.4 3.6 3.8 4 4.2 4.4 4.6 4.8 5
[no spoiler here]
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
