10 minutes ago, YC wrote: > On Mon, Dec 6, 2010 at 11:49 PM, Eli Barzilay <e...@barzilay.org> wrote: > > > Well, that would be an obvious issue... It might be possible to > > do this if they're extended to get an output port too, something > > like: > > > > (regexp-replace* #rx"foo" inp "bar" outp) > > > > doing the same thing as the loop that I wrote. > > So sounds like it can be done then? This will be a nice addition > and make the regexp lib interface more uniform when someone gets > around to it.
Actually, there's a problem -- there is already an optional argument for the prefix, and if an output port is added, it should be added before that for consistency but that will be incompatible. -- ((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/users