| To: | scsh-users@scsh.net |
|---|---|
| Subject: | Re: map function (tail recursive version) |
| From: | Jens Axel Søgaard <usenet@soegaard.net> |
| Date: | Sat, 24 Apr 2004 19:09:00 +0200 (MST) |
| List-id: | <scsh-users.list-id.scsh.net> |
| Old-date: | Sat, 24 Apr 2004 19:07:08 +0200 |
| Organization: | TDC Totalloesninger |
pkhuong wrote:
> The idiomatic way of doing this in Common Lisp (I can't believe the
> Scheme way is that different), is to push (ie (cons data acc)) data on
> the accumulator (curr) and to return the accumulator, /reversed/
> (nreverse, but i don't suppose that's included in R5RS).
It's called reverse! in the Scheme world. It is specified in SRFI1.
<http://srfi.schemers.org/srfi-1/srfi-1.html>
--
Jens Axel Søgaard
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: map function (tail recursive version), pkhuong |
|---|---|
| Next by Date: | Re: map function (tail recursive version), Rick Hanson |
| Previous by Thread: | Re: map function (tail recursive version), pkhuong |
| Next by Thread: | Re: map function (tail recursive version), Rick Hanson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |