On Sat, 23 Jun 2007, Raul Miller wrote:

+ On 6/23/07, Brian Schott <[EMAIL PROTECTED]> wrote:
+ >        The following example suggests the work of list from
+ > stdlib. Is there an existing alternative that organizes the
+ > results filling the columns first, instead of the rows?
+ >   ]test =: a.{~,(26$32,0),.(i.26)+~a. i. 'a'
+ >   15 list test
+
+ I don't understand what you are asking, nor what you are trying
+ to do.  Could you expand on your question?
+

        How about this example of what list produces,
instead?

   ]test =: (1 j. [EMAIL PROTECTED])#a.{~(i.26)+~a. i. 'a'
ab c def gh ijklm no pqrstu vwxyz
   25 list test
ab     c      def
gh     ijklm  no
pqrstu vwxyz

        What I want is something like the following but
without the boxes, so it is more like list produces. Notice
that the specimen words are alphabetical in the columns, not
in the rows in my desired result.

   _3]\0 3 6 1 4 7 2 5{;:test
+---+-----+------+
|ab |gh   |pqrstu|
+---+-----+------+
|c  |ijklm|vwxyz |
+---+-----+------+
|def|no   |      |
+---+-----+------+


+ I also wonder why you are using text with embedded null
+ characters?

        I thought the null characters would produce 2-letter
cells, instead of 1-letter cells. Maybe that was
inappropriate.

+
+ Thanks,
+
+ --
+ Raul

Thank you,

(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to