| From: Eli Barzilay (eli at barzilay.org) Date: Sat Jun 4 23:57:25 EDT 2011 |
|
50 minutes ago, Carl Eastlund wrote:
> You wrote:
>
> (define (regexp-match* . xs)
> (apply regexp-match** car xs))
>
> I'm asking why it's not just this instead:
>
> (define (regexp-match* . xs)
> (map car (apply regexp-match** xs))
>
> Why does regexp-match** need to do the mapping?
Because without that it could be arbitrarily and prohibitively more
expensive.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
| Posted on the dev mailing list. |
|