example.scm 237 B

12345678910111213141516171819
  1. (import
  2. (scheme base)
  3. (scheme read)
  4. (scheme write)
  5. (scheme load))
  6. (load "./procker.scm")
  7. (function (factorial n)
  8. (var i)
  9. (var (p 1))
  10. (for ((=! i 1) (<= i n) (++ i))
  11. (*= p i))
  12. p)
  13. (display (factorial 10))
  14. (newline)