>Wow great! Now i suppose for the next few weeks i will use try the appose >hammer on every problem i encounter (it is mostly directory structures that >are popping nails now)
>i do wonder though what you mean by homogeneous when it is perfectly normal to >have a boxed structure such as 'asf';1 2 3;(i.2 3);2.3 4.5;1 0 1 1 Yes the external view is, but internal is anything but. So operators can make NO assumptions which might be useful for simplification. Open (and yours!) help though. greg ~krsnadas.org -- from: Raul Miller <[email protected]> to: Programming forum <[email protected]> date: 27 April 2014 20:46 subject: Re: [Jprogramming] [Jchat] How a Genius Programmer Rewirtes a Ten-line code into One-line. Boxes are a homogeneous, ragged type. Also, something to think about: open=: &:> Thanks, -- from: greg heil <[email protected]> to: Programming forum <[email protected]> date: 27 April 2014 20:28 subject: Re: [Jchat] How a Genius Programmer Rewirtes a Ten-line code into One-line. >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
