Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Your computer account is overdrawn. Please see Big Brother.


devel / comp.lang.lisp / .Re: MAP (and variants) vs LOOP - Popular opinion observation?

SubjectAuthor
o .Re: MAP (and variants) vs LOOP - Popular opinion observation?Robert L.

1
.Re: MAP (and variants) vs LOOP - Popular opinion observation?

<t1g90p$1n7l$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!gO82SXajZRDWA+a2iuMedA.user.46.165.242.75.POSTED!not-for-mail
From: No_spamming@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.lisp
Subject: .Re: MAP (and variants) vs LOOP - Popular opinion observation?
Date: Wed, 23 Mar 2022 23:03:56 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t1g90p$1n7l$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Info: gioia.aioe.org; logging-data="56565"; posting-host="gO82SXajZRDWA+a2iuMedA.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, 23 Mar 2022 23:03 UTC

Pascal Costanza wrote:

> different kinds of values. Recently, I needed the following costruct
> quite often:
>
> (loop for x in some-list
> for i from 0
> collect `(,x ,i))
>
> This enumerates all elements in a list. You would have to express this
> completely manually without LOOP because none of the mapxyz functions
> help you here.

Obviously wrong.

Gauche Scheme (using lazy iota):

(map list '(b c d) (liota))

===>
((b 0) (c 1) (d 2))

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor