Raul Miller wrote:
> I am wondering if a different style of nesting might be
> suitable.
Yes, this works nicely:
(gTxt ;:^:_1: NEST)@.(nest NEST)
(345 * _2 + +/@:(+/ % #) * ]) - 'hello'"_ , <.
And if I wanted the original style a trivial adaptation suffices:
>@{.^:(1=#)L:1;/`...@.(1=#)L:0 nest NEST
Thank you. Now I need to read your code.
-Dan
PS: Do you think your method would work if you were nesting boxes rather
than integers? I only ask because mine doesn't. Of course, once I read
your code I'll be able to answer the question myself.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm