[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: Anaphoric macros and packages

William James

7/23/2015 8:31:00 PM

Rob Warnock wrote:

> Note that ANSI CL itself already contains some anaphora:
>
> (let ((list '(nil (a b) nil (c d e) nil (f g h i) (j k l))))
> (loop for i in list
> when (third i) ; pun intended.
> collect it))
> => (E H L)

Gauche Scheme:

(filter-map
(cut list-ref <> 2 #f)
'(() (a b) () (c d e) () (f g h i) (j k l)))
===>
(e h l)

--
Arrogant and isolated, the elite treat the ordinary citizens of the empire as
slaves and potential enemies.
www.kolumbus.fi/aquilon/america-middle-class-and-the-end-of-growth.htm