Remove the ~. from your definition of f

(a) as near as I can tell, it's not needed for your spec

(b) it turns f into a hook

-- 
Raul

On Tue, Oct 23, 2018 at 11:45 AM Skip Cave <[email protected]> wrote:
>
> So a new set of test data:
>
> h=.4 5$ 1 5 3 4 5 3 5 4 5 6 5 3 7 5 8 3 8 5 1 5
>
> h
>
> 1 5 3 4 5
>
> 3 5 4 5 6
>
> 5 3 7 5 8
>
> 3 8 5 1 5
>
>
> ix / h
>
> 5 3 5
>
> ~. ix / h
>
> 5 3
>
>
> How to combine it all into one function f ?
>
> f =. ~. ix /
>
> f h
>
> |domain error: f
>
> Skip Cave
> Cave Consulting LLC
>
>
> On Tue, Oct 23, 2018 at 9:59 AM Jimmy Gauvin <[email protected]> wrote:
>
> > In the same vein :
> >
> > ~. ix/ g
> >
> > On Tue, Oct 23, 2018 at 10:41 AM Roger Hui <[email protected]>
> > wrote:
> >
> > > > ix&.>/ <"_1 g  where ix is Mike's intersection verb.
> > >
> > >
> > >
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to