[plt-scheme] string-contains
On Tue, Jul 25, 2006 at 01:28:06PM -0400, David Richards wrote:
> What must be declared to get 'string-contains' defined?
>
> (require (lib "string.ss")) doesn't do the trick.
Searching for "string-contains" in the help-desk indicates that it's in
SRFI 13. Searching for "SRFI" in the help-desk gives a bunch of hits;
choosing the one under the heading "the srfi collection" tells you how
to load the SRFIs included with PLT Scheme.
In this case, either of the two following requires will work:
(require (lib "13.ss" "srfi"))
(require (lib "string.ss" "srfi" "13"))
Note that the first form won't work inside a module that also imports
mzscheme, as SRFI 13 defines some identifiers provided by mzscheme.
Either require it with a prefix or use the second require form, which
renames the identifiers in question.
Richard