Skip to content

Commit

Permalink
inner linking
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 27, 2024
1 parent 85f1930 commit e9554f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/docs/scheme-intro/streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ The base of those data structures are two expressions `delay` and `force`.

The result of delay is often called a Promise.

To create a lazy pair you use cons with first element (`car`) and the rest (`cdr`) is a delay expression:
To create a lazy pair you use cons with first element (`car`) and the rest (`cdr`) is a delay
expression:

```scheme
(define s (cons 1 (delay 2)))
Expand Down Expand Up @@ -47,7 +48,7 @@ Lets define some helper procedures:
`(cons ,x (delay ,y)))
```

This is lazy version of cons that utilize lisp macro.
This is lazy version of cons that utilize [lisp macro](/docs/scheme-intro/macros).

You can also define `car` and `cdr` versions that work with streams:

Expand Down

0 comments on commit e9554f9

Please sign in to comment.