[Jprogramming] Remove part of rank-2 array

Aai agroeneveld400 at gmail.com
Thu Oct 13 21:34:37 HKT 2011


Using selection patterns

    (#"1~ ]\@(1$~#))A
2 0 0
3 4 0
4 5 6

And so

    (#"1~ ]\@(1$~#))3 3$'abcpqruvw'
a
pq
uvw




Hallo David Vaughan, je schreef op 13-10-11 14:52:
> I have an array like:
>
> 2 3 4
> 3 4 5
> 4 5 6
>
> but I want to delete the upper right corner like so:
>
> 2 0 0
> 3 4 0
> 4 5 6
>
> How can this be done? Thanks.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
Met vriendelijke groet,
=@@i



More information about the Programming mailing list