> That's reasonable. Especially since string-search is the same
> as string-match "^...$".
The other way around, OF COURSE!
Exactly. One can get any of the two possible behaviours by using
"^expr$" or ".*expr.*", regardless of whether string-search or
string-match is used; however, a default of "string-search" would
be more consistent with what "grep" usually does.
I'll have the stream-grep routine to use string-search
then.
By the way, expect interesting additions to stream-ext (such as
iterator->stream, allowing
(define (list->stream l)
(iterator->stream
(lambda (collect stop)
(for-each collect l)))) ,
with-output-to-stream and with-input-from-stream [of chars],
etc.). :)