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)
(define (mymap2 op ls)
(let loop ((ls ls))
(if (null? ls)
'()
(cons (op
On Jul 30, 2011, at 4:43 PM, 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)
(define
I've taken a look at compiler macros. I see how it could help with
performace, but I don't get how it would help in this case.
Could you explain?
On Sat, Jul 30, 2011 at 8:51 PM, Kon Lovett konlov...@gmail.com wrote:
On Jul 30, 2011, at 4:43 PM, Pedro Henrique Antunes de Oliveira wrote:
Hey.