Yes Harvey, it works along the leading axis of the APL object… easy to 
sample/test…

   1 0 1 # 1 2 3
1 3

   1 0 1#i.3 2
0 1
4 5

   1 0 1# i.3 4 5
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19

40 41 42 43 44
45 46 47 48 49
50 51 52 53 54
55 56 57 58 59

   1 0 1#'one';'two';'three'
┌───┬─────┐
│one│three│
└───┴─────┘

…/Regards Rob

> On 19 May 2020, at 9:55 pm, HH PackRat <[email protected]> wrote:
> 
> On 5/19/20, Michael Dykman <[email protected]> wrote:
>> In functional languages, you don't really delete so much as you make a
>> fresh copy absent of the undesirable elements.
>> Where you looking for this?
>> 
>> ] a=. <"0 'abcdef'
>> ┌─┬─┬─┬─┬─┬─┐
>> │a│b│c│d│e│f│
>> └─┴─┴─┴─┴─┴─┘
>>   0 0 1 1 0 1 # a
>> ┌─┬─┬─┐
>> │c│d│f│
>> └─┴─┴─┘
> 
> That kind of thing is what gave me the idea of a boolean mask of some
> type.  However, can this be carried over, applying to rows of a table
> instead?  I'm thinking that it probably does in some way, but I want
> confirmation on that.  Thanks for your response!
> 
> Harvey
> ----------------------------------------------------------------------
> 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