Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Being against torture ought to be sort of a bipartisan thing." -- Karl Lehenbauer


devel / comp.lang.lisp / .Re: Incredibly stupid newbie question

SubjectAuthor
o .Re: Incredibly stupid newbie questionRobert L.

1
.Re: Incredibly stupid newbie question

<t0jv6h$1cn$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!W3tGPiuqVkNEMj0crCqmNQ.user.46.165.242.75.POSTED!not-for-mail
From: No_spamming@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.lisp
Subject: .Re: Incredibly stupid newbie question
Date: Sun, 13 Mar 2022 05:24:34 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t0jv6h$1cn$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Info: gioia.aioe.org; logging-data="1431"; posting-host="W3tGPiuqVkNEMj0crCqmNQ.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. - Sun, 13 Mar 2022 05:24 UTC

Kaz Kylheku wrote:

> For instance, there is the REDUCE function which will decimate a
> sequence through a binary operator.
>
> (reduce (lambda (left right) (concatenate 'string left ", " right))
> #("a" "b" "c"))
>
> => "a, b, c"

Gauche Scheme:

(reduce
(& string-append v ", " u)
#f
'("a" "b" "c"))

===>
"a, b, c"

Given:

(define-syntax &-aux
(syntax-rules (u v w quote)
[(_ () shadow (param ...) original)
(lambda (param ...) original)]
[(_ (u more ...) (x y ...) () original)
(&-aux original original (x) original)]
[(_ (v more ...) (x y ...) (a) original)
(&-aux original original (a x) original)]
[(_ (w more ...) (x y ...) (a b) original)
(&-aux () () (a b x) original)]
[(_ ((quote ...) more ...) (y z ...) params original)
(&-aux (more ...) (z ...) params original)]
[(_ ('x more ...) (y z ...) params original)
(&-aux (more ...) (z ...) params original)]
[(_ ((s ...) more ...) (y z ...) params original)
(&-aux (s ... more ...) (s ... z ...) params original)]
[(_ (x more ...) (y z ...) params original)
(&-aux (more ...) (z ...) params original)]
))
;; Lambda with anaphoric parameters u, v, and w.
(define-syntax &
(syntax-rules ()
[(& x ...)
(&-aux (x ...) (x ...) () (x ...))]))


devel / comp.lang.lisp / .Re: Incredibly stupid newbie question

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor