Hi Skip, Your version of f is a hook, as Raul points out, and I think that you want it to be a fork with a left tine of [: so that ~. is executed after ix/
h=.4 5$ 1 5 3 4 5 3 5 4 5 6 5 3 7 5 8 3 8 5 1 5
ix =: ([ -. -.)
f =. [: ~. ix /
f h
5 3
Cheers, bob
> On Oct 23, 2018, at 8:44 AM, Skip Cave <[email protected]> wrote:
>
> f =. ~. ix /
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
