Added a simple installation instruction
Very basic.
This commit is contained in:
parent
5381bf5f69
commit
5668706b88
1 changed files with 9 additions and 4 deletions
13
README.md
13
README.md
|
@ -25,6 +25,10 @@ The current WIP documentation can be found here: https://bjoli.srht.site/doc.htm
|
|||
|
||||
It is written in a weird markdown/xml chimaera. You can find it in documentation doc.xml (for the weird format) and documentation/doc.html for the slightly more accessible HTML format.
|
||||
|
||||
## installation
|
||||
|
||||
Do a git pull from this repo, go into the dir where goof.scm is located and start the guile repl with `guile -L .`. This adds the current directory to the list of load paths, so when you do `(import (goof))` it will find goof and you can run the examples below. The license is a BSD-styled one, so you can chose to either put goof.scm and the folder goof in you project dir, or in your guile site-dir.
|
||||
|
||||
## Features
|
||||
|
||||
### Lexical order of clauses
|
||||
|
@ -267,10 +271,11 @@ $2 = (list 2 4)
|
|||
;; This is actually the preferred way to do it in guile. Guile re-sizes the stack, so no stack overflows
|
||||
$3 = (let loopy-loop ((cursor (read)))
|
||||
(if (pair? cursor)
|
||||
(let ((a (car cursor)) (succ (cdr cursor)))
|
||||
(if (even? a)
|
||||
(cons a (loopy-loop succ))
|
||||
(loopy-loop)))))
|
||||
(let ((a (car cursor)) (succ (cdr cursor)))
|
||||
(if (even? a)
|
||||
(cons a (loopy-loop succ))
|
||||
(loopy-loop)))
|
||||
'()))
|
||||
|
||||
|
||||
;; The code expansion of the partition procedure above produces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue