How to run a scheme script from the command line

Jan 1 2020

Here’s a small bit of scheme code:

(define (adding a b)
  (+ a b))

(display (adding 7 4))

To run this directly from the command line, you can use the following:

mit-scheme --quiet < script.scm