Deutsch   English   Français   Italiano  
<101tbqu$1rh7t$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: "B. Pym" <Nobody447095@here-nor-there.org>
Newsgroups: rec.puzzles,comp.lang.lisp,comp.lang.python
Subject: Re: Add the numbers in a 9x9 multiplication Table
Date: Fri, 6 Jun 2025 00:13:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <101tbqu$1rh7t$1@dont-email.me>
References: <0b09b939cdbbe465809a7ec27e30912a@www.novabbs.com> <20250101214422.224@kylheku.com>
Injection-Date: Fri, 06 Jun 2025 02:13:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d75251f3479e581e3ca1568b60836f4f";
	logging-data="1950973"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18dZU0FCjloGUXEIEZ0+FaO"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:cVVa8RVXOKE0oHe/GSs/oPC3Ngo=

Kaz Kylheku wrote:

> 1> (sum-each ((i 1..10) (j 1..10)) (* i j))
> 285
> 2> (sum-each-prod ((i 1..10) (j 1..10)) (* i j))
> 2025

Gauche Scheme

(use srfi-42)

(sum-ec (: i 10) (: j 10) (* i j))
  ===>
2025