Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197502

Re: Add the numbers in a 9x9 multiplication Table

Path csiph.com!eternal-september.org!feeder3.eternal-september.org!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> (permalink)
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=
Xref csiph.com rec.puzzles:26685 comp.lang.lisp:60320 comp.lang.python:197502

Cross-posted to 3 groups.

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Add  the numbers in a  9x9  multiplication Table HenHanna <HenHanna@dev.null> - 2025-01-02 04:02 +0000
  Re: Add  the numbers in a  9x9  multiplication Table Kaz Kylheku <643-408-1753@kylheku.com> - 2025-01-02 05:49 +0000
    Re: Add the numbers in a 9x9 multiplication Table "B. Pym" <Nobody447095@here-nor-there.org> - 2025-06-06 00:13 +0000
      Re: Add the numbers in a 9x9 multiplication Table "B. Pym" <Nobody447095@here-nor-there.org> - 2025-06-06 15:25 +0000
  Re: Add  the numbers in a  9x9  multiplication Table yeti <yeti@tilde.institute> - 2025-01-02 11:36 +0042
    Re: Add  the numbers in a  9x9  multiplication Table HenHanna <HenHanna@dev.null> - 2025-01-03 21:31 +0000
      Re: Add  the numbers in a  9x9  multiplication Table Kaz Kylheku <643-408-1753@kylheku.com> - 2025-01-03 23:12 +0000

csiph-web