Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "B. Pym" Newsgroups: comp.lang.lisp Subject: .Re: Sum of squares Date: Fri, 7 Jun 2024 00:51:43 -0000 (UTC) Organization: A noiseless patient Spider Lines: 10 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Injection-Date: Fri, 07 Jun 2024 02:51:43 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2047c75010e86b5b7ca3b027714c2e6b"; logging-data="1850433"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+4teu+VZU4O51VE+buqAH" User-Agent: XanaNews/1.18.1.6 Cancel-Lock: sha1:+qTEiI4ifxaLrk6fRpgu6U8Qjz4= Bytes: 1059 > Define a procedure that takes three numbers as arguments and returns > the sum of the squares of the two larger numbers. Gauche Scheme: Without sorting. (define (sos . lst) (apply + (map square (delete (apply min lst) lst))))