diff options
| author | 2025-08-31 23:18:16 -0400 | |
|---|---|---|
| committer | 2025-08-31 23:18:16 -0400 | |
| commit | c0ecde9aafefebbeec9e490dcba70a025d7ed191 (patch) | |
| tree | 1e4ef441f0f4f858e98899ccfd05c0dfa2fbd39a | |
| parent | draft of R7RS libraries (diff) | |
fix missing text
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -107,7 +107,8 @@ Neat, right? Well, if we go to `list-tail` we have a problem: Since `if` is now a function, Scheme (our call-by-value host language) will attempt to reduce `(! (cdr list))` every time, even when we don't need to. We could go back to syntactic if, or we could add some wrapper -to the procedure. The easiest thing to do is `delay-force`. I +to the procedure. The `seq` function (named after the function in Haskell) +takes `n` forms, forces the first `n-1`, and returns the `n`th form. (define (list-tail list n) (if* (zero? n) |
