So using Raul's open:

* table &:>/ 1 2 (+ i.)&.> 9 4


On Mon, Apr 28, 2014 at 3:28 PM, greg heil <[email protected]> wrote:

> >i kind of liked Rogers idea but missed the decoration afforded by
> textbook tables. This kept it to just the snippet afforded by the genius:
>
> * table open/ 1 2+ each i. each 9 4
>
> >it is a bit annoying that J treats boxes in such a cumbersome manner, so
> i did have to define open:
>
> open=:1 : '([:>[) x [:>]'
>
> table and each are in the standard lib
>
> >i kind of miss the each`s (and the lack of boxes) of K -ragged data is so
> easily dealt with (eg dictionaries, XML, json...). i do wonder if a subset
> of J could be made where all the content of boxes were made of a homogenous
> type, just ragged...
>
> greg
> ~krsnadas.org
>
> --
>
> from: Roger Hui <[email protected]>
> to: Chat Forum <[email protected]>
> date: 27 April 2014 15:29
> subject: Re: [Jchat] How a Genius Programmer Rewirtes a Ten-line code
> into One-line.
>
> Yes, */~i.10.  And then +/~i.10, >./~i.10, <./~i.10, |/~i.10, +./~i.10,
> etc.
> ----------------------------------------------------------------------
> 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