lib-square.scm 283 B

12345678910111213141516
  1. (define-library (lib1)
  2. (import (except (scheme base) square))
  3. (export square)
  4. (begin
  5. (define (square n)
  6. (* n 2))))
  7. (import (scheme base))
  8. (import (prefix (lib1) lib1-))
  9. (display (square 8)) (newline)
  10. (display (lib1-square 8)) (newline)
  11. ;; Output: 64
  12. ;; Output: 16