Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Be consistent. -- Larry Wall in the perl man page


devel / comp.lang.lisp / .Re: LOOP blows!

SubjectAuthor
o .Re: LOOP blows!Robert L.

1
.Re: LOOP blows!

<suhtht$856$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16862&group=comp.lang.lisp#16862

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!juMRqxXWetpMDRjdtQnjWg.user.46.165.242.75.POSTED!not-for-mail
From: No_spamming@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.lisp
Subject: .Re: LOOP blows!
Date: Wed, 16 Feb 2022 04:11:43 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <suhtht$856$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Info: gioia.aioe.org; logging-data="8358"; posting-host="juMRqxXWetpMDRjdtQnjWg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XanaNews/1.18.1.6
X-Notice: Filtered by postfilter v. 0.9.2
 by: Robert L. - Wed, 16 Feb 2022 04:11 UTC

> > implementation, how would you expect
> >
> > (loop for i from 5 downto 2
> > for x = (loop for j below i collect j)
> > for y in x
> > collect y)
> >
> > to behave? I think the Lisp you're using is broken.
>
> Mine surely is, the above snippet results in NIL in SBCL. And (0 1 2 3)
> in Clisp. Given that the result I expected was (0 1 2 3 4 0 1 2 3 0 1 2 0
> 1), it seems that both are broken, albeit in different ways. And adapting
> the testcases to ITERATE uncovered some bugs in the same vein as well.
> Fun times, bugreports ahoy.

(use srfi-42) ;; list-ec for Gauche Scheme
or
(require srfi/42) ;; list-ec for Racket

(list-ec (:range x 5 1 -1) (:range y x) y)
===>
(0 1 2 3 4 0 1 2 3 0 1 2 0 1)


devel / comp.lang.lisp / .Re: LOOP blows!

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor