My 7-smooth generator depends upon side effects.  We cannot depend on u^:
when u has side effects including appreciable resource consumption.  Work
around example

for.i.20 do. x u y end.

thanks

>Date: Mon, 2 Mar 2020 18:14:13 -0500
>From: Henry Rich <[email protected]>
>To: [email protected]
>Subject: Re: [Jprogramming] ^:
>Message-ID: <[email protected]>
>Content-Type: text/plain; charset=utf-8; format=flowed
>
>Sometimes it does an initial extra iteration.  It does so in this >case.
>
>I might work on eliminating the extra iteration.  Someday.
>
>Henry Rich
>
>
>
>On 3/2/2020 6:10 PM, Raul Miller wrote:
> I think he's asking why there's a second iteration.
>
> Or, more specifically, why, when n is a list in u^:n why there is an
> extra evaluation of u.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to