aboutsummaryrefslogtreecommitdiffstats
path: root/lib/scheme/base/10-define.csc
blob: d1102687c0e7d19c92813cbcc52f5065a5c48c2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(export
  define
  define-syntax)
(import (only (csc builtins)
          builtin-define
          define-syntax))
(begin


  (define-syntax define
    (syntax-rules ()
      ((define (f . args) body ...)
        (define f (lambda args body ...)))
      ((define name binding)
        (builtin-define name binding)))))