Welcome to the CHICKEN Scheme pasting service

define-record-class HOW YOU LIKE??? added by DerGuteMoritz on Wed Aug 29 22:27:45 2012

(define-record-class (account <account>) ()
     ((balance 0) (transactions '())))

;; never mind the silly tests
(define acc (make-account 2))
(test-assert (account? acc))
(test 2 (account-balance acc))
(test '() (account-transactions acc))
(account-balance-set! acc 9)
(test 9 (slot-value acc 'balance))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Given a list, which one-argument R5RS procedure returns the element at index 0?
Visually impaired? Let me spell it for you (wav file) download WAV