On 6/23/07, Brian Schott <[EMAIL PROTECTED]> wrote:
  ]test =: (1 j. [EMAIL PROTECTED])#a.{~(i.26)+~a. i. 'a'
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   |      |
+---+-----+------+

How important to you is having the columns be differing
widths?  In other words, is Oleg's approach (only one
column width) acceptable?

(Note also that, personally, I think 'list' does too much.
I'd be much more inclined to use a pair of words -- one
that boxed my string appropriately (or formed it into a
matrix, if constant width columns are acceptable) and
another which reforms that into columns.)

Thanks,

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to