Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.27 KB | None | 0 0
  1. (import (chibi show))
  2.  
  3. (define-record-type Point
  4.   (make-point x y)
  5.   point?
  6.   (x point-x)
  7.   (y point-y))
  8.  
  9. (define (point-described p)
  10.   (displayed (each "Point(" (point-x p) "," (point-y p) ")")))
  11.  
  12. ;; (let ((p (make-point 0 0)))
  13. ;;   (show #f (point-described p)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement