Library example

The game of life example program life.scm shows how a program can be divided into libraries plus a relatively small main program [16].

Note when developing a library, the file containing the define-library code must be saved into a .sld file. Also, the name and location of the file must match the library name.

For example, a library defined as

(define-library (example grid)

would need to be saved in a file with the directory location and name


husk-scheme online documentation rev 3.19.3 (2016.07.10)