just a wild guess:
On Jul 31 2011, Pedro Henrique Antunes de Oliveira wrote:
Hey.
I have a file map.scm, which contais this code:
(define (mymap1 op ls)
(let loop ((ls ls) (acc '()))
(if (null? ls)
(reverse acc)
(loop (cdr ls) (cons (op (car ls)) acc)
Interesting point.
But I tried it out. In average, it took about the same amount of time
(actualy this was about 0.1s slower).
Maybe because the amount of time spent on binding arguments to
parameters is larger than the amount of time of that (procedure? op).
I've heard that some compilers can
On Aug 1 2011, Pedro Henrique Antunes de Oliveira wrote:
Interesting point.
But I tried it out. In average, it took about the same amount of time
(actualy this was about 0.1s slower).
Looking closer (since you made me curious); there is little magic
about the definition of map as far as I