[plt-scheme] string-contains

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Tue Jul 25 13:54:46 EDT 2006

> 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.

Another option is to use the 'only' require form to selectively pull out 

(module test-only-require mzscheme
   (require (only (lib "13.ss" "srfi")
   (printf "~a~n" (string-contains "hello" "ll")))

Best of wishes!

Posted on the users mailing list.