a=:i.2 3 4

Ravel a,  then  x  share y
 ?
  f=: 13 :'x$,y'

   6 4 f a
0  1  2  3
4  5  6   7 q
12 13 14 15
16 17 18 19
20 21 22 23.
   Now read the J  version.

   f
[ $ [: , ]

often , two weeks from now, the explicit will be easier to follow.


zLinda


Sent from my Verizon, Samsung Galaxy Tablet


-------- Original message --------
From: Roger Hui <rogerhui.can...@gmail.com>
Date: 8/8/19 9:14 AM (GMT-05:00)
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Simple tacit question

   i. 2 3 4
 0  1  2  3
 4  5  6  7
 8  9 10 11

12 13 14 15
16 17 18 19
20 21 22 23

   ,/ i. 2 3 4
 0  1  2  3
 4  5  6  7
 8  9 10 11
12 13 14 15
16 17 18 19
20 21 22 23

   $ ,/ i. 2 3 4
6 4


On Thu, Aug 8, 2019 at 6:00 AM Bill Harris <
bill_har...@facilitatedsystems.com> wrote:

> This should be easy, but I don't see it.
>
> a =: i. 2 3 4
>
> I want the f in ab =: f a where $ ab is 6 4.
>
> f =: |: @: (,"2 &.(0 1&|:)) seems to work , and f f. doesn't simplify it,
> but I keep thinking I'm missing a way to drop the leftmost |: .
>
> Ideas?
>
> Bill
> --
> Bill Harris
> ----------------------------------------------------------------------
> For information about J forums see 
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C666aa0e03b304ca6e49808d71c02566f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637008668674098987&amp;sdata=2ZVWO7IgRsrovvqrByw1NMu40ktZp%2Bpf6xlP3jpEnnM%3D&amp;reserved=0
>
----------------------------------------------------------------------
For information about J forums see 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7C666aa0e03b304ca6e49808d71c02566f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637008668674098987&amp;sdata=2ZVWO7IgRsrovvqrByw1NMu40ktZp%2Bpf6xlP3jpEnnM%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to