Next: , Previous: , Up: iklib expander   [Index]


6.14.4 Additional import specifications

Import Spec: deprefix ?import-spec ?prefix

Similar to the import specification prefix, but remove a prefix rather than add it. This clause is forbidden when running with the command line option --strict-r6rs.

(import (rnrs)
  (rnrs eval))

(eval '(str.length "ciao")
      (environment
       '(prefix
         (deprefix (only (rnrs)
                         string-length
                         string-append)
                   string-)
         str.)))
⇒ 4
Import Spec: suffix ?import-spec ?suffix

Similar to the import specification prefix, but append a suffix rather than a prefix. This clause is forbidden when running with the command line option --strict-r6rs.

Import Spec: desuffix ?import-spec ?suffix

Similar to the import specification deprefix, but remove a suffix rather than a prefix. This clause is forbidden when running with the command line option --strict-r6rs.