Best I've got is

   (0;1) {::"1 0 y
2 4 6

I would use
   1 {&> y

Henry Rich


On 7/19/2020 5:18 AM, R.E. Boss wrote:
In NUVOC https://code.jsoftware.com/wiki/Vocabulary/curlylf#dyadic I read : "A 
selector of a: designates an omitted axis which is taken in full."
How is this done in 
https://code.jsoftware.com/wiki/Vocabulary/curlylfcoco#dyadic ?

MWE.
With from:

    ]y =. 1 2,3 4,:5 6 7
1 2 0
3 4 0
5 6 7

    (< a:,&<1){y
2 4 6

With fetch, which x and foo (using {:: ) produces

    ]y =. 1 2;3 4;5 6 7
┌───┬───┬─────┐
│1 2│3 4│5 6 7│
└───┴───┴─────┘
   x foo y      
2 4 6

or
   x foo y      
┌─┬─┬─┐
│2│4│6│
└─┴─┴─┘

like 1{S:0 y or 1{L:0 y does.


R.E. Boss
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to