circlist.scm 229 B

1234567891011
  1. (import (scheme base)
  2. (scheme write)
  3. (srfi 1))
  4. (write (apply circular-list '(3 1 4 1 5 9)))
  5. (newline)
  6. ;; Output: #0=(3 1 4 1 5 9 . #0#)
  7. (write (circular-list 3 1 4 1 5))
  8. (newline)
  9. ;; Output: #0=(3 1 4 1 5 . #0#)