Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If Bill Gates is the Devil then Linus Torvalds must be the Messiah. -- Unknown source


devel / comp.lang.lisp / the "loop" macro

SubjectAuthor
o the "loop" macroRobert L.

1
the "loop" macro

<su5bsj$tbk$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!Ielm+gIDc34O3DFO922iPA.user.46.165.242.75.POSTED!not-for-mail
From: No_spamming@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.lisp
Subject: the "loop" macro
Date: Fri, 11 Feb 2022 09:56:37 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <su5bsj$tbk$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Info: gioia.aioe.org; logging-data="30068"; posting-host="Ielm+gIDc34O3DFO922iPA.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. - Fri, 11 Feb 2022 09:56 UTC

> The ability in loop to do even complex things like:
>
> (loop for x in '(1 2 3 4 5 6 7)
> when (evenp x)
> collect x into evens
> else
> collect x into odds
> finally
> (return (values evens odds)))
> => (2 4 6), (1 3 5 7)

Gauche, Chicken, or Racket

(use srfi-1) ;; partition for Gauche or Chicken
or
(require srfi/1) ;; partition for Racket

(partition even? '(2 3 4 5 6 7))
===>
(2 4 6)
(3 5 7)


devel / comp.lang.lisp / the "loop" macro

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor