Well... if you really wanted to go overboard on rephrasings, you could
take that a bit further and do something like this:

   grow=: ,     _2&{ ~: 3 ~:/\ 0,{:,0:
   paritypattern=: 1 }. [ grow@:]^:([-1:) 0 ,: ]

Though, of course, getting rid of meaningful names is not always a good thing.

Anyways: welcome to the forums, it's good to have good new people.

Thanks,

-- 
Raul


On Tue, Oct 31, 2017 at 6:59 PM, Ivan S <[email protected]> wrote:
> 01.11.2017, 05:12, "Raul Miller" <[email protected]>:
>> I am not sure that if there's a better approach, though obviously we
>> could rephrase your approach slightly.
>>
>> For example:
>>
>>    nextrow=: [ ~: 3 ~:/\ 0,],0:
>>    grow=: , _2&{ nextrow {:
>>    paritypattern=: 1 }. [ grow@:]^:([-1:) 0 ,: ]
>>
>> I hope this helps...
>
> I perhaps should have mentioned that this was my third attempt in sending an 
> email to the forum; the earlier messages had a bit more context but never 
> appeared on the mailing list, and I did not expect this one to make it 
> through.
>
> In any case, I'm very new to J and these were my most complicated J 
> definitions so far.  I have been studying your obvious rephrasings for the 
> past hour and have learned much.  Thank you.
>
> - Ivan
> ----------------------------------------------------------------------
> 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