An oldie but a goodie.  See the third paragraph of Perlis, APL is more
French than English <http://www.jsoftware.com/papers/perlis78.htm>, 1978,
talking about events in the 1960s.



On Wed, Jan 15, 2014 at 8:01 AM, Devon McCormick <[email protected]> wrote:

> This (old) trick works nicely if you can fit complete expressions into
> memory:
>
>    +/\(1 _1 0){~'{}' i. '@{ foo; if (abc) { if (q) { m; } } }'
> 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 2 2 1 1 0
>
> It becomes clunkier if you have to process expressions in sequential chunks
> but can be made to work.
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to