From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: project euler 26 Date: Sun, 10 Sep 2023 11:11:18 +0200 Organization: A noiseless patient Spider Message-ID: References: <878r9mudvj.fsf@bsb.me.uk> <87a5u1u1yv.fsf@bsb.me.uk> <8734ztttpc.fsf@bsb.me.uk> <87fs3ssl6v.fsf@bsb.me.uk> <87a5u0rts0.fsf@bsb.me.uk> <87jzt3qqlb.fsf@bsb.me.uk> <87o7ieq3ne.fsf@bsb.me.uk> <87tts4ml8z.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 10 Sep 2023 09:11:18 -0000 (UTC) Injection-Info: dont-email.me; posting-host="5879ac69b2dc570a842c2fc93c7d4b0d"; logging-data="563431"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O5q2pOr2bmNOl/nfiXdpdv6VhjoS2WQU=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Cancel-Lock: sha1:rg/ZFe6PyyLuUVviDff1zrWK/MA= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65636 List-Id: On 2023-09-09 10:13, G.B. wrote: > The "apparatus" that the computation needs in order to remember > "max so far" looks like part of its state to me. Somehow > "the function" needs to operate this state and evaluate it. You can hide explicit state using recursion. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de