[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.lisp

Re: Multivalue tail recursion?

William James

12/29/2015 6:10:00 AM

Geoff Wozniak wrote:

> While doing the problems at Project Euler may not be considered work,
> I can say that LOOP makes some of those puzzles easy to come up with
> reasonable answers. Something like
>
> (loop for i from 1 to 1000 sum (expt i i))

MatzLisp (Ruby):

(1..1000).reduce(0){|sum,n| sum + n**n}

--
Amazon bans book. After nearly a month on the site, all traces of the book and
its 80 reviews have been removed.
http://jamesfetzer.blogspot.com/2015/11/debunking-sandy-hook-debunk...
https://www.youtube.com/watch?v=E...