Perhaps this will help:
e=: 2 7 1 8 2 8 1 8 3
pi=: 3 1 4 1 5 9 2 6 5
e,.pi
2 3
7 1
1 4
8 1
2 5
8 9
1 2
8 6
3 5
]/"1 e,.pi
3 1 4 1 5 9 2 6 5
[/"1 e,.pi
2 7 1 8 2 8 1 8 3
On 5/31/2012 10:48, Graham Parkhouse wrote:
> Can anyone help me to understand where I am going wrong?
>
> e=: 2 7 1 8 2 8 1 8 3
> pi=: 3 1 4 1 5 9 2 6 5
> isecn=: ([: /:~ [: ~. e. # [)"1 NB. Intersection of the two sets
> e isecn pi
> 1 2 3
> pi isecn e
> 1 2 3
> isecn/ e,:pi
> 1 2 3
> isecn/"1 e,.pi
>
>
>
>
>
>
>
>
> This last sentence give me 9 blank lines. I expected and wanted 1 2 3. Is my
> view of rank and frames too simplistic?
>
> Regards
>
> Graham
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm