Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "B. Pym"
Newsgroups: comp.lang.lisp
Subject: Re: continuing next iteration
Date: Mon, 26 Aug 2024 03:37:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Mon, 26 Aug 2024 05:37:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ddb29dda6a5be89b0e6e9e24964aa013";
logging-data="2440835"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18X/Zoc1fEvMTFrcXlM6+RH"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:fHzN9UH15BHNJ9FkG/8NYfq9akQ=
Bytes: 1509
> > (loop for i below 6
> finally (return (reverse (pairlis list list2)))
> do (format t "~d" i)
> collect i into list
> do (format t "^2 = ~2d~%" (* i i))
> collect (* i i) into list2)
> 0^2 = 0
> 1^2 = 1
> 2^2 = 4
> 3^2 = 9
> 4^2 = 16
> 5^2 = 25
> ((0 . 0) (1 . 1) (2 . 4) (3 . 9) (4 . 16) (5 . 25))
Gauche Scheme
(use srfi-42) ;; list-ec
(list-ec (:range i 6)
(begin
(display i)
(format #t "^2 = ~2d\n" (* i i))
(cons i (* i i))))
0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
4^2 = 16
5^2 = 25
((0 . 0) (1 . 1) (2 . 4) (3 . 9) (4 . 16) (5 . 25))