Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

:Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul

11 views
Skip to first unread message

Robert L.

unread,
Nov 30, 2016, 4:10:41 PM11/30/16
to
Antonio Menezes Leitao wrote:

> But I'm starting to use something very similar in permanent code...
>
> For simple one-arg lambdas, I use this:
>
> (defmacro << (&body body)
> `#'(lambda (<<)
> (declare (ignorable <<))
> ,@body))
>
> Your example becomes:
>
> (mapcar (<< (cons << (+ 32 (* 9/5 <<)))) (iota 11 0 10))

MatzLisp (Ruby):

0.step(100,10).map{|x| [x, x*9/5+32]}

[[0, 32], [10, 50], [20, 68], [30, 86], [40, 104], [50, 122],
[60, 140], [70, 158], [80, 176], [90, 194], [100, 212]]


--
For two years ... he was held in solitary confinement in the Toronto West
Detention Centre.... [A] court in Mannheim sentenced him to five years
imprisonment for the crime of "popular incitement" under Germany's notorious
"Holocaust denial" statute. www.revisionists.com/revisionists/zundel.html
0 new messages