Thanks Raul! That is magic! /Bo.
Den 15:09 mandag den 5. marts 2018 skrev Raul Miller
<[email protected]>:
Here's a literal translation:
f=: ,.&,/@:(,."_ 0)
Good luck,
--
Raul
On Mon, Mar 5, 2018 at 8:34 AM, 'Bo Jacoby' via Programming
<[email protected]> wrote:
> Let (a =. _1 _1 0 0 0 1) and (b =. 2 3).
> For my own education I am trying to make a homecooked version of (p.).
>
> (+`*/}:(,a,.2),.,a,.3) produces the same result as (a p. b)
> I need a nice verb (f) such that (a f b) produces ((,a,.2),.,a,.3)
> Thanks!
> Bo.
> ----------------------------------------------------------------------
> 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