On 3/29/07, Dan Bron <[EMAIL PROTECTED]> wrote:
Or, to answer your question another way: I object to writing code to manage my resources because I use J precisely to avoid that. I want to design skyscrapers, not drive nails.
Ok, let's try a different approach. Let's say I define a conjunction named "chunk". The left verb for "chunk" is expected to split (and box) some text on some domain-relevant boundaries. The right verb for "chunk" will be applied to each of those split out elements. The right argument for chunk will be an array of file references. The result of chunk will be an array of boxes (one per file) and the contents of each box will be the result of v applied to each of the boxes generated by u. Chunk will read the file in blocks, will break each file apart using u and then process each resulting element using v. The last element of each block will be prepended to the next block when it is read. This requires that u be consistent in how it works (such that the last element in its result is sufficiently large as to cause no ambiguity when prepended to the beginning of the next block). If you had this kind of a conjunction and, for example, a suitable verb to split text apart on newline boundaries, would that be useful to you? -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
