Hi Martin

I used "2" as I wanted to copy rows and not columns. As well, plain #
without 'each' didn't allow me to work with boxed arrays of different
dimensions.

Cheers

Bob

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: April 26, 2010 12:47 PM
To: [email protected]
Subject: Re: [Jprogramming] Each and #

>   x=. i. 4 6
>   I want to copy each row of x. Using #, [...]
>   1 2 3 4 #"2 x

You may want to revisit the Dictionary entry for # to understand that
a simple

        1 2 3 4 # x

will achieve your goal much more naturally.  I'm curious:
(1) what made you add the  "2  ?
(2) Did you ever try the plain  #  ?

                                                        Martin
----------------------------------------------------------------------
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