helper.scm 388 B

1234567891011121314
  1. ;; The import-spec contains all parts from the root of the project to the
  2. ;; module.
  3. (library (helper)
  4. (export myproc)
  5. ;; To be able to use the ~library~ form, you need to import (rnrs base).
  6. (import (except (rnrs base) let-values map error)
  7. ;; Importing only λ from guile for this module.
  8. (only (guile) λ))
  9. (define myproc
  10. (λ (arg)
  11. (+ arg 2))))