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!
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Reply via email to