poly.scm 296 B

1234567891011121314
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey
  3. (define (identity x) x) ; can't get much more polymorphic than that
  4. (define (test x)
  5. (cond (#f
  6. (vector-ref (identity (make-vector 3)) 2))
  7. (else
  8. (+ (identity (+ x 3)) (identity (+ x 2))))))