lib-squaref.scm 307 B

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