Welcome to the CHICKEN Scheme pasting service

modular programs added by wasamasa on Fri May 27 17:56:53 2016

;; program.scm

(declare (uses foobar))

(module main ()

(import chicken scheme)
(import foobar)

(display (fac 10))
(newline)

)

;; foobar.scm

(declare (unit foobar))

(module foobar *

(import chicken scheme)

(define (fac n)
  (if (zero? n)
    1
    (* n (sub1 n))))

)

;; $ csc -s foobar.scm -j foobar
;; $ csc -s foobar.import.scm
;; $ csc program.scm foobar.scm
;; $ ./program

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which egg provides `hash-table-ref'?
Visually impaired? Let me spell it for you (wav file) download WAV