Sujet : Re: Average of a [stack]
De : buzz_mccool (at) *nospam* yahoo.com (Buzz McCool)
Groupes : comp.lang.forthDate : 19. Jul 2024, 16:15:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7dvuk$31ie5$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 7/18/2024 6:49 PM, dxf wrote:
While c.l.f. challenges are often couched in terms of items on a stack,
one is more likely to be dealing with data in memory and a count.
Shifting the operation to the stack (assuming that's even viable) strikes
me as unnecessary.
In this instance, I was using Forth as a scientific calculator that I could easily show the data input, algorithm, and output results in a reproducible and sharable fashion.
I stumbled upon the "Average of a list" thread from last month and took advantage of the discussion to get the knowledgeable c.l.f denizens to whittle down my naive code to its essentials and learn fish for myself a bit better in the future. Many thanks you and all who take the time to teach or opine.